Class: Glib::JsonUi::ActionBuilder::Snackbars::Select

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

Overview

string :verticalPosition

string :horizontalPosition
singleton_array :styleClass, :styleClasses

end

Instance Attribute Summary

Attributes inherited from JsonUiElement

#json, #page

Instance Method Summary collapse

Methods inherited from JsonUiElement

action, any, array, badgeable, bool, color, component_name, date, date_time, enum, float, hash, icon, #initialize, int, length, menu, panels_builder, #props, required, singleton_array, string, text, url, views

Constructor Details

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

Instance Method Details

#buttons(block) ⇒ Object



38
39
40
41
42
# File 'app/helpers/glib/json_ui/action_builder/snackbars.rb', line 38

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