Class: ForestAdminDatasourceToolkit::Components::Actions::WidgetField::DropdownField
- Inherits:
-
ActionField
- Object
- ActionField
- ForestAdminDatasourceToolkit::Components::Actions::WidgetField::DropdownField
- Defined in:
- lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#search ⇒ Object
Returns the value of attribute search.
-
#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) ⇒ DropdownField
constructor
A new instance of DropdownField.
Methods inherited from ActionField
Constructor Details
#initialize(options) ⇒ DropdownField
Returns a new instance of DropdownField.
83 84 85 86 87 88 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 83 def initialize() super(**) @widget = 'Dropdown' @options = [:options] @search = [:search] || nil end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
81 82 83 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 81 def @options end |
#search ⇒ Object
Returns the value of attribute search.
81 82 83 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 81 def search @search end |
#widget ⇒ Object
Returns the value of attribute widget.
81 82 83 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 81 def @widget end |