Class: RubyUI::ComboboxTrigger
- Defined in:
- lib/ruby_ui/combobox/combobox_trigger.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(placeholder: "") ⇒ ComboboxTrigger
constructor
A new instance of ComboboxTrigger.
- #view_template ⇒ Object
Constructor Details
#initialize(placeholder: "") ⇒ ComboboxTrigger
Returns a new instance of ComboboxTrigger.
5 6 7 8 |
# File 'lib/ruby_ui/combobox/combobox_trigger.rb', line 5 def initialize(placeholder: "", **) @placeholder = placeholder super(**) end |
Instance Method Details
#view_template ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/ruby_ui/combobox/combobox_trigger.rb', line 10 def view_template (**attrs) do span(class: "truncate", data: {ruby_ui__combobox_target: "triggerContent"}) do @placeholder end icon end end |