Class: PhlexUI::Select
Defined Under Namespace
Classes: Builder, Content, Group, Input, Item, Label, Trigger, Value
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(options: {}, **attrs) ⇒ Select
constructor
A new instance of Select.
- #view_template ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(options: {}, **attrs) ⇒ Select
Returns a new instance of Select.
5 6 7 8 9 10 11 |
# File 'lib/phlex_ui/select.rb', line 5 def initialize(options: {}, **attrs) @options = @options[:trigger] ||= "click" @options[:duration] ||= [500, 0] @options[:placement] ||= "bottom-start" super(**attrs) end |
Instance Method Details
#view_template ⇒ Object
13 14 15 |
# File 'lib/phlex_ui/select.rb', line 13 def view_template(&) div(**attrs, &) end |