Class: ForestAdminDatasourceToolkit::Components::Actions::WidgetField::NumberInputField
- Inherits:
-
ActionField
- Object
- ActionField
- ForestAdminDatasourceToolkit::Components::Actions::WidgetField::NumberInputField
- Defined in:
- lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb
Instance Attribute Summary collapse
-
#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) ⇒ NumberInputField
constructor
A new instance of NumberInputField.
Methods inherited from ActionField
Constructor Details
#initialize(options) ⇒ NumberInputField
Returns a new instance of NumberInputField.
106 107 108 109 110 111 112 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 106 def initialize() super(**) = 'NumberInput' @step = [:step] || nil @min = [:min] || nil @max = [:max] || nil end |
Instance Attribute Details
#max ⇒ Object
Returns the value of attribute max.
104 105 106 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 104 def max @max end |
#min ⇒ Object
Returns the value of attribute min.
104 105 106 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 104 def min @min end |
#step ⇒ Object
Returns the value of attribute step.
104 105 106 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 104 def step @step end |
#widget ⇒ Object
Returns the value of attribute widget.
104 105 106 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 104 def end |