Class: Matestack::Ui::VueJs::Components::Toggle
- Defined in:
- lib/matestack/ui/vue_js/components/toggle.rb
Instance Method Summary collapse
Methods inherited from Vue
#base_vue_props, #component_attributes, #component_id, #component_uid, #create_children, inherited, #initialize, #matestack_ui_vuejs_ref, #vue_component, vue_name, #vue_name
Constructor Details
This class inherits a constructor from Matestack::Ui::VueJs::Vue
Instance Method Details
#response ⇒ Object
10 11 12 13 14 |
# File 'lib/matestack/ui/vue_js/components/toggle.rb', line 10 def response div toggle_attributes do yield end end |
#toggle_attributes ⇒ Object
16 17 18 19 20 21 |
# File 'lib/matestack/ui/vue_js/components/toggle.rb', line 16 def toggle_attributes .merge({ class: "matestack-toggle-component-root", 'v-if': 'vc.showing' }) end |