Class: KirguduBase::DynamicPages::EntryProperty
- Inherits:
-
Property
- Object
- Element
- PageElement
- Property
- KirguduBase::DynamicPages::EntryProperty
- Defined in:
- app/models/kirgudu_base/dynamic_pages/entry_property.rb
Instance Attribute Summary collapse
-
#inplace_edit ⇒ Object
Returns the value of attribute inplace_edit.
-
#output_control ⇒ Object
Returns the value of attribute output_control.
-
#target ⇒ Object
used when control is a :link.
Attributes inherited from Property
#data_source, #description, #format, #help, #label, #parent, #placeholder, #text_value_property, #tooltip
Attributes inherited from PageElement
#enabled, #html_options, #id, #name, #use_i18n, #visible
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ EntryProperty
constructor
A new instance of EntryProperty.
- #is_control_with_target? ⇒ Boolean
Methods inherited from Property
Methods inherited from PageElement
#i18n_data_as_string, #to_external_hash
Methods inherited from Element
#as_json, #fix_parent_entry, #kontroller_klass, #to_external_hash
Methods included from Models::MergeableElements::ClassMethods
#get_mergeable_attributes, #mergeable_attributes
Methods included from Models::FixableElements::ClassMethods
#fixable_attributes, #get_kb_fixable_attributes
Methods included from Models::FixableElements::InstanceMethods
Methods included from Models::MergeableElements::InstanceMethods
Constructor Details
#initialize(options = {}) ⇒ EntryProperty
Returns a new instance of EntryProperty.
14 15 16 17 18 19 20 |
# File 'app/models/kirgudu_base/dynamic_pages/entry_property.rb', line 14 def initialize( = {}) self.inplace_edit = nil self.output_control = nil self.target = nil super() end |
Instance Attribute Details
#inplace_edit ⇒ Object
Returns the value of attribute inplace_edit.
22 23 24 |
# File 'app/models/kirgudu_base/dynamic_pages/entry_property.rb', line 22 def inplace_edit @inplace_edit end |
#output_control ⇒ Object
Returns the value of attribute output_control.
23 24 25 |
# File 'app/models/kirgudu_base/dynamic_pages/entry_property.rb', line 23 def output_control @output_control end |
#target ⇒ Object
used when control is a :link
24 25 26 |
# File 'app/models/kirgudu_base/dynamic_pages/entry_property.rb', line 24 def target @target end |
Instance Method Details
#is_control_with_target? ⇒ Boolean
27 28 29 |
# File 'app/models/kirgudu_base/dynamic_pages/entry_property.rb', line 27 def is_control_with_target? ::KirguduBase::DynamicPages::Enums::ENTRY_CONTROLS_WITH_TARGET.include?(self.output_control) end |