Class: FoxTail::PasswordInputComponent
- Inherits:
-
InputComponent
- Object
- ViewComponent::Base
- Base
- BaseComponent
- InputBaseComponent
- InputComponent
- FoxTail::PasswordInputComponent
- Includes:
- Concerns::HasStimulusController
- Defined in:
- app/components/fox_tail/password_input_component.rb
Defined Under Namespace
Classes: StimulusController
Instance Attribute Summary
Attributes inherited from BaseComponent
Instance Method Summary collapse
Methods inherited from InputComponent
Methods inherited from InputBaseComponent
Methods inherited from BaseComponent
classname_merger, #initialize, stimulus_merger, use_stimulus?, #with_html_attributes, #with_html_class
Methods inherited from Base
Constructor Details
This class inherits a constructor from FoxTail::BaseComponent
Instance Method Details
#before_render ⇒ Object
16 17 18 19 20 21 |
# File 'app/components/fox_tail/password_input_component.rb', line 16 def before_render super html_attributes[:type] = :password html_attributes[:spellcheck] = false unless html_attributes.key? :spellcheck end |
#stimulus_controller_options ⇒ Object
12 13 14 |
# File 'app/components/fox_tail/password_input_component.rb', line 12 def {} end |
#use_stimulus? ⇒ Boolean
8 9 10 |
# File 'app/components/fox_tail/password_input_component.rb', line 8 def use_stimulus? super && controlled? end |