class Voom::Presenters::DSL::Components::Lists::Actions

Public Class Methods

new(actions, **attribs_, &block) click to toggle source
# File lib/voom/presenters/dsl/components/lists/actions.rb, line 7
def initialize(actions, **attribs_, &block)
  @actions = actions
  super(type: :actions, **attribs_, &block)
  expand!
end

Public Instance Methods

button(text=nil, **attribs, &block) click to toggle source
# File lib/voom/presenters/dsl/components/lists/actions.rb, line 50
def button(text=nil, **attribs, &block)
  action = Lists::Action.new(parent: self)
  action.button(text, **attribs, &block)
  @actions << action
end
checkbox(**attribs, &block) click to toggle source
# File lib/voom/presenters/dsl/components/lists/actions.rb, line 26
def checkbox(**attribs, &block)
  action = Lists::Action.new(parent: self)
  action.checkbox(**attribs, &block)
  @actions << action
end
icon(icon=nil, **attribs, &block) click to toggle source
# File lib/voom/presenters/dsl/components/lists/actions.rb, line 13
def icon(icon=nil, **attribs, &block)
  action = Lists::Action.new(parent: self)
  action.icon(icon, **attribs, &block)
  @actions << action
end
icon_toggle(icon=nil, **attribs, &block) click to toggle source
# File lib/voom/presenters/dsl/components/lists/actions.rb, line 44
def icon_toggle(icon=nil, **attribs, &block)
  action = Lists::Action.new(parent: self)
  action.icon_toggle(icon, **attribs, &block)
  @actions << action
end
menu(**attribs, &block) click to toggle source
radio_button(**attribs, &block) click to toggle source
# File lib/voom/presenters/dsl/components/lists/actions.rb, line 32
def radio_button(**attribs, &block)
  action = Lists::Action.new(parent: self)
  action.radio_button(**attribs, &block)
  @actions << action
end
switch(**attribs, &block) click to toggle source
# File lib/voom/presenters/dsl/components/lists/actions.rb, line 38
def switch(**attribs, &block)
  action = Lists::Action.new(parent: self)
  action.switch(**attribs, &block)
  @actions << action
end