Class: ForestAdminDatasourceToolkit::Components::Actions::WidgetField::FilePickerField
- Inherits:
-
ActionField
- Object
- ActionField
- ForestAdminDatasourceToolkit::Components::Actions::WidgetField::FilePickerField
- Defined in:
- lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb
Instance Attribute Summary collapse
-
#extensions ⇒ Object
Returns the value of attribute extensions.
-
#max_count ⇒ Object
Returns the value of attribute max_count.
-
#max_size_mb ⇒ Object
Returns the value of attribute max_size_mb.
-
#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) ⇒ FilePickerField
constructor
A new instance of FilePickerField.
Methods inherited from ActionField
Constructor Details
#initialize(options) ⇒ FilePickerField
Returns a new instance of FilePickerField.
94 95 96 97 98 99 100 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 94 def initialize() super(**) = 'FilePicker' @extensions = [:extensions] || nil @max_size_mb = [:max_size_mb] || nil @max_count = [:max_count] || nil end |
Instance Attribute Details
#extensions ⇒ Object
Returns the value of attribute extensions.
92 93 94 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 92 def extensions @extensions end |
#max_count ⇒ Object
Returns the value of attribute max_count.
92 93 94 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 92 def max_count @max_count end |
#max_size_mb ⇒ Object
Returns the value of attribute max_size_mb.
92 93 94 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 92 def max_size_mb @max_size_mb end |
#widget ⇒ Object
Returns the value of attribute widget.
92 93 94 |
# File 'lib/forest_admin_datasource_toolkit/components/actions/widget_field.rb', line 92 def end |