Class: Ambling::Column::Settings::Labels::Label
- Inherits:
-
Object
- Object
- Ambling::Column::Settings::Labels::Label
- 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
-
#align ⇒ Object
- left
-
(left / center / right).
-
#lid ⇒ Object
xml attribute.
-
#rotate ⇒ Object
- false
-
(true / false).
-
#text ⇒ Object
-
(text) html tags may be used (supports , <i>, <u>, <font>, <a href=“”>, <br/>. Enter text between []: <![CDATA[your <b>bold and italic text]]>.
-
#text_color ⇒ Object
- text_color
-
(hex color code) button text color.
-
#text_size ⇒ Object
[text_size](Number) button text size.
-
#width ⇒ Object
-
(Number / Number%) if empty, will stretch from left to right untill label fits.
-
#x ⇒ Object
- 0
-
(Number / Number% / !Number).
-
#y ⇒ Object
- 0
-
(Number / Number% / !Number).
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 , <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_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 |
#text_size ⇒ Object
[text_size](Number) button text size
1104 1105 1106 |
# File 'lib/ambling/column.rb', line 1104 def text_size @text_size 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 |