class Voom::Presenters::DSL::Components::Lists::Actions
Public Class Methods
new(actions, **attribs_, &block)
click to toggle source
Calls superclass method
Voom::Presenters::DSL::Components::Base::new
# 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
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
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