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, 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
#created ⇒ Object
Override
278 279 280 281 282 283 284 285 |
# File 'app/helpers/glib/json_ui/view_builder.rb', line 278 def created if @name json.material do json.name @name json.size @size if @size end end end |
#name(value) ⇒ Object
269 270 271 |
# File 'app/helpers/glib/json_ui/view_builder.rb', line 269 def name(value) @name = value end |
#size(value) ⇒ Object
273 274 275 |
# File 'app/helpers/glib/json_ui/view_builder.rb', line 273 def size(value) @size = value end |