Class: PhlexUI::Command::Input
- Defined in:
- lib/phlex_ui/command/input.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(placeholder: "Type a command or search...", **attrs) ⇒ Input
constructor
A new instance of Input.
- #view_template ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(placeholder: "Type a command or search...", **attrs) ⇒ Input
Returns a new instance of Input.
5 6 7 8 |
# File 'lib/phlex_ui/command/input.rb', line 5 def initialize(placeholder: "Type a command or search...", **attrs) @placeholder = placeholder super(**attrs) end |
Instance Method Details
#view_template ⇒ Object
10 11 12 13 14 15 |
# File 'lib/phlex_ui/command/input.rb', line 10 def view_template input_container do search_icon input(**attrs) end end |