class Voom::Presenters::DSL::Components::Dialog::Actions

Attributes

buttons[RW]

Public Class Methods

new(**attribs_, &block) click to toggle source
# File lib/voom/presenters/dsl/components/dialog.rb, line 64
def initialize(**attribs_, &block)
  super(type: :action, **attribs_, &block)
  @buttons = []
  expand!
end

Public Instance Methods

button(text = nil, **options, &block) click to toggle source
# File lib/voom/presenters/dsl/components/dialog.rb, line 70
def button(text = nil, **options, &block)
  @buttons << Components::Button.new(parent: self, text: text,
                                     **options, &block)
end