Class: RubyUI::ComboboxSearchInput
- Defined in:
- lib/ruby_ui/combobox/combobox_search_input.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(placeholder:) ⇒ ComboboxSearchInput
constructor
A new instance of ComboboxSearchInput.
- #view_template ⇒ Object
Constructor Details
#initialize(placeholder:) ⇒ ComboboxSearchInput
Returns a new instance of ComboboxSearchInput.
5 6 7 8 |
# File 'lib/ruby_ui/combobox/combobox_search_input.rb', line 5 def initialize(placeholder:, **) @placeholder = placeholder super(**) end |
Instance Method Details
#view_template ⇒ Object
10 11 12 13 14 15 |
# File 'lib/ruby_ui/combobox/combobox_search_input.rb', line 10 def view_template div class: "flex text-muted-foreground items-center border-b px-3" do icon input(**attrs) end end |