Class: Plutonium::UI::Form::Resource
- Includes:
- Concerns::RendersNestedResourceFields
- Defined in:
- lib/plutonium/ui/form/resource.rb
Direct Known Subclasses
Constant Summary
Constants included from Concerns::RendersNestedResourceFields
Concerns::RendersNestedResourceFields::DEFAULT_NESTED_LIMIT, Concerns::RendersNestedResourceFields::NESTED_OPTION_KEYS, Concerns::RendersNestedResourceFields::SINGULAR_MACROS
Instance Attribute Summary collapse
-
#resource_definition ⇒ Object
readonly
Returns the value of attribute resource_definition.
-
#resource_fields ⇒ Object
readonly
Returns the value of attribute resource_fields.
Instance Method Summary collapse
- #form_template ⇒ Object
-
#initialize(resource_fields:, resource_definition:) ⇒ Resource
constructor
A new instance of Resource.
Methods included from Component::Behaviour
Methods included from Component::Tokens
Methods included from Component::Kit
#BuildActionButton, #BuildBlock, #BuildBreadcrumbs, #BuildColorModeSelector, #BuildDynaFrameContent, #BuildDynaFrameHost, #BuildEmptyCard, #BuildFrameNavigatorPanel, #BuildPageHeader, #BuildPanel, #BuildSkeletonTable, #BuildTabList, #BuildTableInfo, #BuildTablePagination, #BuildTableScopesBar, #BuildTableSearchBar, #method_missing, #respond_to_missing?
Constructor Details
#initialize(resource_fields:, resource_definition:) ⇒ Resource
Returns a new instance of Resource.
13 14 15 16 17 |
# File 'lib/plutonium/ui/form/resource.rb', line 13 def initialize(*, resource_fields:, resource_definition:, **, &) super(*, **, &) @resource_fields = resource_fields @resource_definition = resource_definition end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Plutonium::UI::Component::Kit
Instance Attribute Details
#resource_definition ⇒ Object (readonly)
Returns the value of attribute resource_definition.
9 10 11 |
# File 'lib/plutonium/ui/form/resource.rb', line 9 def resource_definition @resource_definition end |
#resource_fields ⇒ Object (readonly)
Returns the value of attribute resource_fields.
9 10 11 |
# File 'lib/plutonium/ui/form/resource.rb', line 9 def resource_fields @resource_fields end |
Instance Method Details
#form_template ⇒ Object
19 20 21 22 |
# File 'lib/plutonium/ui/form/resource.rb', line 19 def form_template render_fields render_actions end |