Class: Avo::RhinoField::Fields::RhinoField
- Inherits:
-
Fields::BaseField
- Object
- Fields::BaseField
- Avo::RhinoField::Fields::RhinoField
- Defined in:
- lib/avo/rhino_field/fields/rhino_field.rb
Instance Attribute Summary collapse
-
#always_show ⇒ Object
readonly
Returns the value of attribute always_show.
Instance Method Summary collapse
-
#initialize(id, **args, &block) ⇒ RhinoField
constructor
A new instance of RhinoField.
- #view_component_namespace ⇒ Object
Constructor Details
#initialize(id, **args, &block) ⇒ RhinoField
Returns a new instance of RhinoField.
7 8 9 10 11 12 13 14 |
# File 'lib/avo/rhino_field/fields/rhino_field.rb', line 7 def initialize(id, **args, &block) super(id, **args, &block) hide_on :index @always_show = args[:always_show] || false @stacked = args[:stacked] || true end |
Instance Attribute Details
#always_show ⇒ Object (readonly)
Returns the value of attribute always_show.
5 6 7 |
# File 'lib/avo/rhino_field/fields/rhino_field.rb', line 5 def always_show @always_show end |
Instance Method Details
#view_component_namespace ⇒ Object
16 17 18 |
# File 'lib/avo/rhino_field/fields/rhino_field.rb', line 16 def view_component_namespace "Avo::Fields::RhinoField" end |