Class: Avo::Fields::HasManyField
- Inherits:
-
HasBaseField
- Object
- BaseField
- HasBaseField
- Avo::Fields::HasManyField
- Defined in:
- lib/avo/fields/has_many_field.rb
Defined Under Namespace
Classes: ShowComponent
Instance Attribute Summary
Attributes inherited from HasBaseField
Attributes inherited from BaseField
#action, #as_avatar, #as_description, #as_label, #block, #computable, #computed, #computed_value, #default, #format_using, #help, #id, #model, #null_values, #nullable, #panel_name, #readonly, #required, #resource, #sortable, #updatable, #user, #view, #visible
Attributes included from FieldExtensions::VisibleInDifferentViews
#show_on_edit, #show_on_index, #show_on_new, #show_on_show
Instance Method Summary collapse
-
#initialize(id, **args, &block) ⇒ HasManyField
constructor
A new instance of HasManyField.
Methods inherited from HasBaseField
#frame_url, #resource, #target_resource, #turbo_frame
Methods inherited from BaseField
#component_for_view, #custom?, #database_id, #fill_field, #has_own_panel?, #hydrate, #model_errors, #name, #placeholder, #resolve_attribute, #to_permitted_param, #translation_key, #type, #value, #view_component_name, #visible?
Methods included from FieldExtensions::HasFieldName
Methods included from FieldExtensions::VisibleInDifferentViews
#except_on, #hide_on, #only_on, #show_on
Constructor Details
#initialize(id, **args, &block) ⇒ HasManyField
Returns a new instance of HasManyField.
4 5 6 7 8 9 10 11 |
# File 'lib/avo/fields/has_many_field.rb', line 4 def initialize(id, **args, &block) args[:updatable] = false super(id, **args, &block) hide_on :all show_on :show end |