Class: ForestAdminDatasourceToolkit::Components::Actions::WidgetField::NumberInputListField
- Inherits:
-
ActionField
- Object
- ActionField
- ForestAdminDatasourceToolkit::Components::Actions::WidgetField::NumberInputListField
- 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.
-
#max ⇒ Object
Returns the value of attribute max.
-
#min ⇒ Object
Returns the value of attribute min.
-
#step ⇒ Object
Returns the value of attribute step.
-
#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) ⇒ NumberInputListField
constructor
A new instance of NumberInputListField.
Methods inherited from ActionField
Constructor Details
#initialize(options) ⇒ NumberInputListField
Returns a new instance of NumberInputListField.
127 128 129 130 131 132 133 134 135 136 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 127 def initialize() super(**) @widget = 'NumberInputList' @allow_duplicates = [:allow_duplicates] @allow_empty_values = [:allow_empty_values] @enable_reorder = [:enable_reorder] @min = [:min] @max = [:max] @step = [:step] end |
Instance Attribute Details
#allow_duplicates ⇒ Object
Returns the value of attribute allow_duplicates.
125 126 127 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 125 def allow_duplicates @allow_duplicates end |
#allow_empty_values ⇒ Object
Returns the value of attribute allow_empty_values.
125 126 127 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 125 def allow_empty_values @allow_empty_values end |
#enable_reorder ⇒ Object
Returns the value of attribute enable_reorder.
125 126 127 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 125 def enable_reorder @enable_reorder end |
#max ⇒ Object
Returns the value of attribute max.
125 126 127 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 125 def max @max end |
#min ⇒ Object
Returns the value of attribute min.
125 126 127 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 125 def min @min end |
#step ⇒ Object
Returns the value of attribute step.
125 126 127 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 125 def step @step end |
#widget ⇒ Object
Returns the value of attribute widget.
125 126 127 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 125 def @widget end |