Class: KirguduBase::DynamicPages::EntryProperty

Inherits:
Property show all
Defined in:
app/models/kirgudu_base/dynamic_pages/entry_property.rb

Instance Attribute Summary collapse

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

#parent_entry

Instance Method Summary collapse

Methods inherited from Property

#to_external_hash

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

#fix_parent_entry

Methods included from Models::MergeableElements::InstanceMethods

#merge

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(options = {})
	self.inplace_edit = nil
	self.output_control = nil
	self.target = nil

	super(options)
end

Instance Attribute Details

#inplace_editObject

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_controlObject

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

#targetObject

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

Returns:

  • (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