Method: Fidgit::Container#button

Defined in:
lib/fidgit/elements/container.rb

#button(text, options = {}, &block) ⇒ Object

Create a button within the container.



57
58
59
# File 'lib/fidgit/elements/container.rb', line 57

def button(text, options = {}, &block)
  Button.new(text, {parent: self}.merge!(options), &block)
end