Class: Forms::PasswordField

Inherits:
Input
  • Object
show all
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

Methods inherited from Input

#view_template

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