Class: Glib::JsonUi::ActionBuilder::Logics::Set

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

Overview

Future: Replace showIf and loadIf Example: ‘submitWhenNotDisplayed` is false by default fields_text id: ’my_text’, displayed: false, submitWhenNotDisplayed: true

logics_if condition: { ‘==’, BLAH1, BLAH2 }, true: ->(action) do

action.components_set targetId: 'my_text', displayed: true

end

class If < Action

hash :condition
action :true
action :false

end

Instance Attribute Summary

Attributes inherited from JsonUiElement

#json, #page

Method Summary

Methods inherited from JsonUiElement

#initialize, #props

Constructor Details

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