Class: Glib::JsonUi::ActionBuilder::Dialogs::Options

Inherits:
Action show all
Defined in:
app/helpers/glib/json_ui/action_builder.rb

Overview

class Confirm < Action

string :message
action :onConfirm
action :onCancel

end

Instance Attribute Summary

Attributes inherited from JsonUiElement

#json, #page

Instance Method Summary collapse

Methods inherited from Action

#analytics, #created

Methods inherited from JsonUiElement

#initialize, #parse

Constructor Details

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

Instance Method Details

#buttons(block) ⇒ Object



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

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