Class: Ambling::Column::Settings::Labels::Label

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/ambling/column.rb

Constant Summary collapse

VALUES =
[:x,:y,:rotate,:width,:align,:text_color,:text_size,:text]
ATTRIBUTES =
[:lid]

Instance Attribute Summary collapse

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#align ⇒ Object

[left] (left / center / right)



1094
1095
1096
# File 'lib/ambling/column.rb', line 1094

def align
  @align
end

#lid ⇒ Object

xml attribute



1114
1115
1116
# File 'lib/ambling/column.rb', line 1114

def lid
  @lid
end

#rotate ⇒ Object

[false] (true / false)



1084
1085
1086
# File 'lib/ambling/column.rb', line 1084

def rotate
  @rotate
end

#text ⇒ Object

[] (text) html tags may be used (supports , , , , ,
. Enter text between []: bold
and italic text]]>



1109
1110
1111
# File 'lib/ambling/column.rb', line 1109

def text
  @text
end

#text_color ⇒ Object

[text_color] (hex color code) button text color



1099
1100
1101
# File 'lib/ambling/column.rb', line 1099

def text_color
  @text_color
end

#width ⇒ Object

[] (Number / Number%) if empty, will stretch from left to right untill label fits



1089
1090
1091
# File 'lib/ambling/column.rb', line 1089

def width
  @width
end

#x ⇒ Object

[0] (Number / Number% / !Number)



1074
1075
1076
# File 'lib/ambling/column.rb', line 1074

def x
  @x
end

#y ⇒ Object

[0] (Number / Number% / !Number)



1079
1080
1081
# File 'lib/ambling/column.rb', line 1079

def y
  @y
end