class Matestack::Ui::VueJs::Components::Toggle

Public Instance Methods

response() { || ... } click to toggle source
# File lib/matestack/ui/vue_js/components/toggle.rb, line 10
def response
  div toggle_attributes do
    yield
  end
end
toggle_attributes() click to toggle source
# File lib/matestack/ui/vue_js/components/toggle.rb, line 16
def toggle_attributes
  options.merge({
    class: "matestack-toggle-component-root", 
    'v-if': 'showing'
  })
end

Protected Instance Methods

vue_props() click to toggle source
# File lib/matestack/ui/vue_js/components/toggle.rb, line 25
def vue_props
  {
    show_on: ctx.show_on,
    hide_on: ctx.hide_on,
    hide_after: ctx.hide_after,
    init_show: ctx.init_show,
  }
end