Class: Glib::JsonUi::ViewBuilder::Icon
- Inherits:
-
View
- Object
- JsonUiElement
- View
- Glib::JsonUi::ViewBuilder::Icon
- Defined in:
- app/helpers/glib/json_ui/view_builder.rb
Instance Attribute Summary
Attributes inherited from JsonUiElement
Instance Method Summary collapse
Methods inherited from View
Methods inherited from JsonUiElement
action, any, array, badgeable, bool, color, component_name, date, date_time, 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
#created ⇒ Object
Override
205 206 207 208 209 210 211 212 |
# File 'app/helpers/glib/json_ui/view_builder.rb', line 205 def created if @name json.material do json.name @name json.size @size if @size end end end |
#name(value) ⇒ Object
196 197 198 |
# File 'app/helpers/glib/json_ui/view_builder.rb', line 196 def name(value) @name = value end |
#size(value) ⇒ Object
200 201 202 |
# File 'app/helpers/glib/json_ui/view_builder.rb', line 200 def size(value) @size = value end |