Class: Glib::JsonUi::ActionBuilder::Components::Replace

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

Overview

Consider deprecating this. See ‘components_set` example in app/views/json_ui/garage/forms/selects.json.jbuilder

Instance Attribute Summary

Attributes inherited from JsonUiElement

#json, #page

Instance Method Summary collapse

Methods inherited from JsonUiElement

#initialize, #props

Constructor Details

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

Instance Method Details

#newView(block) ⇒ Object



24
25
26
27
28
# File 'app/helpers/glib/json_ui/action_builder/components.rb', line 24

def newView(block)
  json.newView do
    block.call(page.sview_builder)
  end
end