Class: Ambling::Pie::Settings::Labels::Label
- Inherits:
-
Object
- Object
- Ambling::Pie::Settings::Labels::Label
- Includes:
- Base
- Defined in:
- lib/ambling/pie.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)
805 806 807 |
# File 'lib/ambling/pie.rb', line 805 def align @align end |
#lid ⇒ Object
xml attribute
825 826 827 |
# File 'lib/ambling/pie.rb', line 825 def lid @lid end |
#rotate ⇒ Object
- false
-
(true / false)
795 796 797 |
# File 'lib/ambling/pie.rb', line 795 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]]>
820 821 822 |
# File 'lib/ambling/pie.rb', line 820 def text @text end |
#text_color ⇒ Object
- text_color
-
(hex color code) button text color
810 811 812 |
# File 'lib/ambling/pie.rb', line 810 def text_color @text_color end |
#text_size ⇒ Object
[text_size](Number) button text size
815 816 817 |
# File 'lib/ambling/pie.rb', line 815 def text_size @text_size end |
#width ⇒ Object
-
(Number / Number%) if empty, will stretch from left to right untill label fits
800 801 802 |
# File 'lib/ambling/pie.rb', line 800 def width @width end |
#x ⇒ Object
- 0
-
(Number / Number% / !Number)
785 786 787 |
# File 'lib/ambling/pie.rb', line 785 def x @x end |
#y ⇒ Object
- 0
-
(Number / Number% / !Number)
790 791 792 |
# File 'lib/ambling/pie.rb', line 790 def y @y end |