Class: ForestAdminDatasourceToolkit::Components::Actions::WidgetField::TextInputListField
- Inherits:
-
ActionField
- Object
- ActionField
- ForestAdminDatasourceToolkit::Components::Actions::WidgetField::TextInputListField
- Defined in:
- lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb
Instance Attribute Summary collapse
-
#allow_duplicates ⇒ Object
Returns the value of attribute allow_duplicates.
-
#allow_empty_values ⇒ Object
Returns the value of attribute allow_empty_values.
-
#enable_reorder ⇒ Object
Returns the value of attribute enable_reorder.
-
#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) ⇒ TextInputListField
constructor
A new instance of TextInputListField.
Methods inherited from ActionField
Constructor Details
#initialize(options) ⇒ TextInputListField
Returns a new instance of TextInputListField.
180 181 182 183 184 185 186 187 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 180 def initialize() super(**) @widget = 'TextInputList' @allow_duplicates = ![:allow_duplicates].nil? @allow_empty_values = ![:allow_empty_values].nil? @enable_reorder = [:enable_reorder].nil? end |
Instance Attribute Details
#allow_duplicates ⇒ Object
Returns the value of attribute allow_duplicates.
178 179 180 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 178 def allow_duplicates @allow_duplicates end |
#allow_empty_values ⇒ Object
Returns the value of attribute allow_empty_values.
178 179 180 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 178 def allow_empty_values @allow_empty_values end |
#enable_reorder ⇒ Object
Returns the value of attribute enable_reorder.
178 179 180 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 178 def enable_reorder @enable_reorder end |
#widget ⇒ Object
Returns the value of attribute widget.
178 179 180 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 178 def @widget end |