Class: ForestAdminDatasourceToolkit::Components::Actions::WidgetField::DatePickerField
- Inherits:
-
ActionField
- Object
- ActionField
- ForestAdminDatasourceToolkit::Components::Actions::WidgetField::DatePickerField
- Defined in:
- lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#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) ⇒ DatePickerField
constructor
A new instance of DatePickerField.
Methods inherited from ActionField
Constructor Details
#initialize(options) ⇒ DatePickerField
Returns a new instance of DatePickerField.
70 71 72 73 74 75 76 77 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 70 def initialize() super(**) @widget = 'DatePicker' @format = [:format] || nil @min = [:min] || nil @max = [:max] || nil @step = [:step] || nil end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
68 69 70 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 68 def format @format end |
#max ⇒ Object
Returns the value of attribute max.
68 69 70 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 68 def max @max end |
#min ⇒ Object
Returns the value of attribute min.
68 69 70 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 68 def min @min end |
#step ⇒ Object
Returns the value of attribute step.
68 69 70 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 68 def step @step end |
#widget ⇒ Object
Returns the value of attribute widget.
68 69 70 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 68 def @widget end |