Class: KirguduBase::DynamicPages::Property

Inherits:
PageElement show all
Defined in:
app/models/kirgudu_base/dynamic_pages/property.rb

Direct Known Subclasses

EntryProperty, Filter, FormProperty, ListProperty

Instance Attribute Summary collapse

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 PageElement

#i18n_data_as_string

Methods inherited from Element

#as_json, #fix_parent_entry, #kontroller_klass

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 = {}) ⇒ Property



8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'app/models/kirgudu_base/dynamic_pages/property.rb', line 8

def initialize(options = {})
	self.label = nil

	self.data_source = nil
	self.text_value_property = nil
	self.tooltip = nil
	self.format = nil
	self.parent = nil
	self.help = nil
	self.description = nil
	self.placeholder = nil

	super(options)
end

Instance Attribute Details

#data_sourceObject

Returns the value of attribute data_source.



27
28
29
# File 'app/models/kirgudu_base/dynamic_pages/property.rb', line 27

def data_source
  @data_source
end

#descriptionObject

Returns the value of attribute description.



33
34
35
# File 'app/models/kirgudu_base/dynamic_pages/property.rb', line 33

def description
  @description
end

#formatObject

Returns the value of attribute format.



30
31
32
# File 'app/models/kirgudu_base/dynamic_pages/property.rb', line 30

def format
  @format
end

#helpObject

Returns the value of attribute help.



32
33
34
# File 'app/models/kirgudu_base/dynamic_pages/property.rb', line 32

def help
  @help
end

#labelObject

Returns the value of attribute label.



24
25
26
# File 'app/models/kirgudu_base/dynamic_pages/property.rb', line 24

def label
  @label
end

#parentObject

Returns the value of attribute parent.



31
32
33
# File 'app/models/kirgudu_base/dynamic_pages/property.rb', line 31

def parent
  @parent
end

#placeholderObject

Returns the value of attribute placeholder.



26
27
28
# File 'app/models/kirgudu_base/dynamic_pages/property.rb', line 26

def placeholder
  @placeholder
end

#text_value_propertyObject

Returns the value of attribute text_value_property.



28
29
30
# File 'app/models/kirgudu_base/dynamic_pages/property.rb', line 28

def text_value_property
  @text_value_property
end

#tooltipObject

Returns the value of attribute tooltip.



29
30
31
# File 'app/models/kirgudu_base/dynamic_pages/property.rb', line 29

def tooltip
  @tooltip
end

Instance Method Details

#to_external_hash(options = {}) ⇒ Object



37
38
39
40
41
42
43
44
# File 'app/models/kirgudu_base/dynamic_pages/property.rb', line 37

def to_external_hash(options = {})
	options ||= {}
	options.merge!({

	               })

	super(options)
end