Class: Glib::JsonUi::MenuBuilder::Button

Inherits:
MenuItem show all
Defined in:
app/helpers/glib/json_ui/menu_builder.rb

Instance Attribute Summary

Attributes inherited from JsonUiElement

#json, #page

Instance Method Summary collapse

Methods inherited from JsonUiElement

#initialize, #props

Constructor Details

This class inherits a constructor from Glib::JsonUi::JsonUiElement

Instance Method Details

#childButtons(block) ⇒ Object



50
51
52
53
54
# File 'app/helpers/glib/json_ui/menu_builder.rb', line 50

def childButtons(block)
  json.childButtons do
    block.call page.menu_builder
  end
end

#createdObject

Override



57
58
59
60
61
# File 'app/helpers/glib/json_ui/menu_builder.rb', line 57

def created
  super

  json.type 'button'
end