Class: ForestAdminDatasourceToolkit::Components::Actions::WidgetField::RadioGroupField

Inherits:
ActionField
  • Object
show all
Defined in:
lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb

Instance Attribute Summary collapse

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

Methods inherited from ActionField

#to_h, #watch_changes?

Constructor Details

#initialize(options) ⇒ RadioGroupField

Returns a new instance of RadioGroupField.



142
143
144
145
146
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 142

def initialize(options)
  super(**options)
  @widget = 'RadioGroup'
  @options = options[:options]
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



140
141
142
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 140

def options
  @options
end

#widgetObject

Returns the value of attribute widget.



140
141
142
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 140

def widget
  @widget
end