Class: LinkedRails::Form::Field::ResourceField
- Inherits:
-
LinkedRails::Form::Field
- Object
- Resource
- LinkedRails::Form::Field
- LinkedRails::Form::Field::ResourceField
- Defined in:
- app/models/linked_rails/form/field/resource_field.rb
Constant Summary
Constants included from Model::Collections
Model::Collections::COLLECTION_CUSTOMIZABLE_OPTIONS, Model::Collections::COLLECTION_OPTIONS, Model::Collections::COLLECTION_STATIC_OPTIONS
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
- #url ⇒ Object
Attributes inherited from LinkedRails::Form::Field
#default_value, #description, #form, #group, #helper_text, #input_field, #key, #label, #max_count, #max_count_prop, #max_inclusive, #max_inclusive_prop, #max_length, #max_length_prop, #min_count, #min_count_prop, #min_inclusive, #min_inclusive_prop, #min_length, #min_length_prop, #model_attribute, #model_class, #pattern, #placeholder, #sh_in, #sh_in_prop, #start_adornment, #validators
Attributes inherited from Resource
Instance Method Summary collapse
Methods inherited from LinkedRails::Form::Field
Methods inherited from Resource
Methods included from Model
Methods included from Model::Singularable
#root_relative_iri, #root_relative_singular_iri, #singular_iri, #singular_iri?, #singular_iri_opts, #singular_iri_template, #singular_resource?
Methods included from Model::Serialization
#preview_includes, #show_includes
Methods included from Model::Menuable
Methods included from Model::IRI
#anonymous_iri, #anonymous_iri?, #iri, #iri_elements, #iri_opts, #rdf_type, #reload, #root_relative_iri, #route_fragment
Methods included from Model::Enhancements
Methods included from Model::Dirty
Methods included from Model::Collections
#collection_for, #collection_iri, #collection_options_for, #collection_root_relative_iri, #parent_collections
Methods included from Model::Actionable
#action, #action_list, #action_triples, #actions, #collection_actions, #favorite_actions
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
11 12 13 |
# File 'app/models/linked_rails/form/field/resource_field.rb', line 11 def path @path end |
#url ⇒ Object
19 20 21 |
# File 'app/models/linked_rails/form/field/resource_field.rb', line 19 def url @url.respond_to?(:call) ? @url.call : @url end |
Instance Method Details
#datatype ⇒ Object
9 |
# File 'app/models/linked_rails/form/field/resource_field.rb', line 9 def datatype; end |
#label_from_property ⇒ Object
13 |
# File 'app/models/linked_rails/form/field/resource_field.rb', line 13 def label_from_property; end |
#permission_required? ⇒ Boolean
15 16 17 |
# File 'app/models/linked_rails/form/field/resource_field.rb', line 15 def false end |