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

#alignObject

left

(left / center / right)



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

def align
  @align
end

#lidObject

xml attribute



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

def lid
  @lid
end

#rotateObject

false

(true / false)



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

def rotate
  @rotate
end

#textObject

(text) html tags may be used (supports , <i>, <u>, <font>, <a href=“”>, <br/>. Enter text between []: <![CDATA[your <b>bold and italic text]]>



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

def text
  @text
end

#text_colorObject

text_color

(hex color code) button text color



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

def text_color
  @text_color
end

#text_sizeObject

[text_size](Number) button text size



1104
1105
1106
# File 'lib/ambling/column.rb', line 1104

def text_size
  @text_size
end

#widthObject

(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

#xObject

0

(Number / Number% / !Number)



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

def x
  @x
end

#yObject

0

(Number / Number% / !Number)



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

def y
  @y
end