Class: ForestAdminDatasourceToolkit::Components::Actions::WidgetField::TextAreaField
- Inherits:
-
ActionField
- Object
- ActionField
- ForestAdminDatasourceToolkit::Components::Actions::WidgetField::TextAreaField
- Defined in:
- lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb
Instance Attribute Summary collapse
-
#rows ⇒ Object
Returns the value of attribute rows.
-
#widget ⇒ Object
Returns the value of attribute widget.
Attributes inherited from ActionField
#collection_name, #description, #enum_values, #id, #is_read_only, #is_required, #label, #placeholder, #type, #value, #watch_changes
Instance Method Summary collapse
-
#initialize(options) ⇒ TextAreaField
constructor
A new instance of TextAreaField.
Methods inherited from ActionField
Constructor Details
#initialize(options) ⇒ TextAreaField
Returns a new instance of TextAreaField.
161 162 163 164 165 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 161 def initialize() super(**) @widget = 'TextArea' @rows = [:rows] || nil end |
Instance Attribute Details
#rows ⇒ Object
Returns the value of attribute rows.
159 160 161 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 159 def rows @rows end |
#widget ⇒ Object
Returns the value of attribute widget.
159 160 161 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 159 def @widget end |