Class: Glib::JsonUi::ViewBuilder::Button

Inherits:
View show all
Defined in:
app/helpers/glib/json_ui/view_builder.rb

Overview

class Banner < View

icon :icon
string :text

end

Instance Attribute Summary

Attributes inherited from JsonUiElement

#json, #page

Instance Method Summary collapse

Methods inherited from View

component_name

Methods inherited from JsonUiElement

#initialize, #props

Constructor Details

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

Instance Method Details

#childButtons(block) ⇒ Object

TODO: This should be deprecated in favour of ‘popovers/open`



208
209
210
211
212
# File 'app/helpers/glib/json_ui/view_builder.rb', line 208

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