Class: Glib::JsonUi::DynamicFieldBuilders::Group

Inherits:
AbstractBuilder show all
Defined in:
app/helpers/glib/json_ui/dynamic_field_builders.rb

Instance Attribute Summary

Attributes inherited from AbstractBuilder

#json, #page

Instance Method Summary collapse

Constructor Details

#initialize(json, page, template) ⇒ Group

Returns a new instance of Group.



6
7
8
9
# File 'app/helpers/glib/json_ui/dynamic_field_builders.rb', line 6

def initialize(json, page, template)
  super json, page
  @template = template
end

Instance Method Details

#template(options = {}) ⇒ Object



16
17
18
19
20
# File 'app/helpers/glib/json_ui/dynamic_field_builders.rb', line 16

def template(options = {})
  # json.template do
  page.vertical_content(options)
  # end
end

#titlePrefix(string) ⇒ Object

string :titlePrefix



12
13
14
# File 'app/helpers/glib/json_ui/dynamic_field_builders.rb', line 12

def titlePrefix(string)
  json.titlePrefix string
end