Module: StimulusPlumbers::Form::Fields::Inputs::Password
- Included in:
- Builder
- Defined in:
- lib/stimulus_plumbers/form/fields/inputs/password.rb
Constant Summary collapse
- STIMULUS_CONTROLLER =
"input-formatter"- STIMULUS_ACTION =
"click->#{STIMULUS_CONTROLLER}#toggle".freeze
Instance Method Summary collapse
Instance Method Details
#password_field(attribute, floating: nil, revealable: false, **options) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/stimulus_plumbers/form/fields/inputs/password.rb', line 11 def password_field(attribute, floating: nil, revealable: false, **) = (theme.resolve(:form_field_input, floating: floating), ) if revealable render_revealable_password(false) do super(attribute, (, { data: { input_formatter_target: "input" } })) end else super(attribute, ) end end |