Class: LinkedRails::Form::Field::ColorInput
- Inherits:
-
LinkedRails::Form::Field
- Object
- Resource
- LinkedRails::Form::Field
- LinkedRails::Form::Field::ColorInput
- Defined in:
- app/models/linked_rails/form/field/color_input.rb
Instance Attribute Summary
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, #path, #sh_in, #sh_in_prop, #validators
Attributes inherited from Resource
Instance Method Summary collapse
Methods inherited from LinkedRails::Form::Field
iri, #name, #permission_required?
Methods inherited from Resource
Methods included from Model
#build_child, #singular_resource?
Methods included from Model::Serialization
#preview_includes, #show_includes
Methods included from Model::Iri
#anonymous_iri, #anonymous_iri?, #iri, #iri_opts, #rdf_type, #reload, #root_relative_iri, #route_fragment
Methods included from Model::Enhancements
Methods included from Model::Dirty
#previous_changes_by_predicate, #previously_changed_relations
Methods included from Model::Collections
#collection_for, #parent_collections
Instance Method Details
#datatype ⇒ Object
7 8 9 |
# File 'app/models/linked_rails/form/field/color_input.rb', line 7 def datatype Vocab.ontola[:CssHexColor] end |
#pattern ⇒ Object
11 12 13 |
# File 'app/models/linked_rails/form/field/color_input.rb', line 11 def pattern @pattern ||= /^#([a-f0-9]{3}){1,2}$/i end |