Class: Glib::JsonUi::ActionBuilder::Components::Set

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

Overview

Deprecated: use logics_set instead. logics_set is a superset of this action (same targetId/data/onSet/skipOnChange, plus conditionalData, targetIds, variables and cacheData).

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

#dataBuilder(block) ⇒ Object



49
50
51
52
53
# File 'app/helpers/glib/json_ui/action_builder/components.rb', line 49

def dataBuilder(block)
  json.data do
    block.call(page.sview_builder)
  end
end