Module: StimulusPlumbers::Form::Fields::Inputs::Password
- Included in:
- Builder
- Defined in:
- lib/stimulus_plumbers/form/fields/inputs/password.rb
Instance Method Summary collapse
Instance Method Details
#password_field(attribute, floating: nil, revealable: false, **options) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/stimulus_plumbers/form/fields/inputs/password.rb', line 8 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 |