Class: Forms::PasswordField
- Defined in:
- lib/forms/password_field.rb
Overview
Convenience: an Input pre-typed as password. PasswordField(:primary, name: "user")
Constant Summary
Constants included from PhlexForms::DelegatedField
PhlexForms::DelegatedField::IGNORED_MODIFIERS
Instance Method Summary collapse
-
#initialize(placeholder: "••••••••", autocomplete: "current-password") ⇒ PasswordField
constructor
A new instance of PasswordField.
Methods inherited from Input
Constructor Details
#initialize(placeholder: "••••••••", autocomplete: "current-password") ⇒ PasswordField
Returns a new instance of PasswordField.
7 8 9 |
# File 'lib/forms/password_field.rb', line 7 def initialize(*, placeholder: "••••••••", autocomplete: "current-password", **) super(*, type: "password", placeholder:, autocomplete:, **) end |