class Matestack::Ui::VueJs::Components::Onclick

Public Instance Methods

onclick_attributes() click to toggle source
# File lib/matestack/ui/vue_js/components/onclick.rb, line 16
def onclick_attributes
  options.merge({
    class: "matestack-onclick-component-root",
    '@click.prevent': 'perform',
    href: "#"
  })
end
response() { || ... } click to toggle source
# File lib/matestack/ui/vue_js/components/onclick.rb, line 10
def response
  a onclick_attributes do
    yield
  end
end

Protected Instance Methods

vue_props() click to toggle source
# File lib/matestack/ui/vue_js/components/onclick.rb, line 26
def vue_props
  {
    emit: ctx.emit,
    data: ctx.data,
  }
end