Class: Matestack::Ui::Bootstrap::Components::Dropdown
- Inherits:
-
VueJsComponent
- Object
- VueJsComponent
- Matestack::Ui::Bootstrap::Components::Dropdown
- Defined in:
- app/concepts/matestack/ui/bootstrap/components/dropdown.rb
Instance Method Summary collapse
Instance Method Details
#prepare ⇒ Object
13 14 15 |
# File 'app/concepts/matestack/ui/bootstrap/components/dropdown.rb', line 13 def prepare = self..is_a?(Hash) ? self. : { items: self. } end |
#response ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'app/concepts/matestack/ui/bootstrap/components/dropdown.rb', line 16 def response div dropdown_attributes do split_btn_partial if slots && slots[:split_btn] bs_btn btn_attributes unless slots && slots[:split_btn] ul do unless [:items].blank? yield_components end end end |