Class: Ambling::Line::Settings::Labels::Label
- Inherits:
-
Object
- Object
- Ambling::Line::Settings::Labels::Label
- Includes:
- Base
- Defined in:
- lib/ambling/line.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)
1544 1545 1546 |
# File 'lib/ambling/line.rb', line 1544 def align @align end |
#lid ⇒ Object
xml attribute
1564 1565 1566 |
# File 'lib/ambling/line.rb', line 1564 def lid @lid end |
#rotate ⇒ Object
- false
-
(true / false)
1534 1535 1536 |
# File 'lib/ambling/line.rb', line 1534 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]]>
1559 1560 1561 |
# File 'lib/ambling/line.rb', line 1559 def text @text end |
#text_color ⇒ Object
- text_color
-
(hex color code) button text color
1549 1550 1551 |
# File 'lib/ambling/line.rb', line 1549 def text_color @text_color end |
#text_size ⇒ Object
[text_size](Number) button text size
1554 1555 1556 |
# File 'lib/ambling/line.rb', line 1554 def text_size @text_size end |
#width ⇒ Object
-
(Number / Number%) if empty, will stretch from left to right untill label fits
1539 1540 1541 |
# File 'lib/ambling/line.rb', line 1539 def width @width end |
#x ⇒ Object
- 0
-
(Number / Number% / !Number)
1524 1525 1526 |
# File 'lib/ambling/line.rb', line 1524 def x @x end |
#y ⇒ Object
- 0
-
(Number / Number% / !Number)
1529 1530 1531 |
# File 'lib/ambling/line.rb', line 1529 def y @y end |