Class: Ambling::Xy::Settings::Labels::Label
- Inherits:
-
Object
- Object
- Ambling::Xy::Settings::Labels::Label
- Includes:
- Base
- Defined in:
- lib/ambling/xy.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)
1394 1395 1396 |
# File 'lib/ambling/xy.rb', line 1394 def align @align end |
#lid ⇒ Object
xml attribute
1414 1415 1416 |
# File 'lib/ambling/xy.rb', line 1414 def lid @lid end |
#rotate ⇒ Object
- false
-
(true, false)
1384 1385 1386 |
# File 'lib/ambling/xy.rb', line 1384 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]]>
1409 1410 1411 |
# File 'lib/ambling/xy.rb', line 1409 def text @text end |
#text_color ⇒ Object
- text_color
-
(hex color code) button text color
1399 1400 1401 |
# File 'lib/ambling/xy.rb', line 1399 def text_color @text_color end |
#text_size ⇒ Object
[text_size](Number) button text size
1404 1405 1406 |
# File 'lib/ambling/xy.rb', line 1404 def text_size @text_size end |
#width ⇒ Object
-
(Number / Number%) if empty, will stretch from left to right untill label fits
1389 1390 1391 |
# File 'lib/ambling/xy.rb', line 1389 def width @width end |
#x ⇒ Object
- 0
-
(Number / Number% / !Number)
1374 1375 1376 |
# File 'lib/ambling/xy.rb', line 1374 def x @x end |
#y ⇒ Object
- 0
-
(Number / Number% / !Number)
1379 1380 1381 |
# File 'lib/ambling/xy.rb', line 1379 def y @y end |