Class: ForestAdminDatasourceToolkit::Components::Actions::WidgetField::CurrencyInputField
- Inherits:
-
ActionField
- Object
- ActionField
- ForestAdminDatasourceToolkit::Components::Actions::WidgetField::CurrencyInputField
- Defined in:
- lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#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) ⇒ CurrencyInputField
constructor
A new instance of CurrencyInputField.
Methods inherited from ActionField
Constructor Details
#initialize(options) ⇒ CurrencyInputField
Returns a new instance of CurrencyInputField.
56 57 58 59 60 61 62 63 64 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 56 def initialize() super(**) @widget = 'CurrencyInput' @currency = [:currency] @base = [:base] || 'Unit' @min = [:min] || nil @max = [:max] || nil @step = [:step] || nil end |
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base.
54 55 56 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 54 def base @base end |
#currency ⇒ Object
Returns the value of attribute currency.
54 55 56 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 54 def currency @currency end |
#max ⇒ Object
Returns the value of attribute max.
54 55 56 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 54 def max @max end |
#min ⇒ Object
Returns the value of attribute min.
54 55 56 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 54 def min @min end |
#step ⇒ Object
Returns the value of attribute step.
54 55 56 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 54 def step @step end |
#widget ⇒ Object
Returns the value of attribute widget.
54 55 56 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 54 def @widget end |