Class: Ambling::Column::Settings::Balloon
- Inherits:
-
Object
- Object
- Ambling::Column::Settings::Balloon
- Includes:
- Base
- Defined in:
- lib/ambling/column.rb
Overview
BALLOON
Constant Summary collapse
- VALUES =
[:enabled,:color,:alpha,:text_color,:text_size,:max_width,:corner_radius,:border_width,:border_alpha,:border_color]
Instance Attribute Summary collapse
-
#alpha ⇒ Object
- 100
-
(0 - 100).
-
#border_alpha ⇒ Object
- balloon.alpha
-
(Number).
-
#border_color ⇒ Object
- balloon.color
-
(hex color code).
-
#border_width ⇒ Object
- 0
-
(Number).
-
#color ⇒ Object
-
(hex color code) balloon background color.
-
#corner_radius ⇒ Object
- 0
-
(Number) Corner radius of a balloon.
-
#enabled ⇒ Object
- true
-
(true / false).
-
#max_width ⇒ Object
- 220
-
(Number) The maximum width of a balloon.
-
#text_color ⇒ Object
- #FFFFFF
-
(hex color code).
-
#text_size ⇒ Object
- text_size
-
(Number).
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#alpha ⇒ Object
- 100
-
(0 - 100)
765 766 767 |
# File 'lib/ambling/column.rb', line 765 def alpha @alpha end |
#border_alpha ⇒ Object
- balloon.alpha
-
(Number)
795 796 797 |
# File 'lib/ambling/column.rb', line 795 def border_alpha @border_alpha end |
#border_color ⇒ Object
- balloon.color
-
(hex color code)
800 801 802 |
# File 'lib/ambling/column.rb', line 800 def border_color @border_color end |
#border_width ⇒ Object
- 0
-
(Number)
790 791 792 |
# File 'lib/ambling/column.rb', line 790 def border_width @border_width end |
#color ⇒ Object
-
(hex color code) balloon background color. If empty, slightly darker then current column color will be used
760 761 762 |
# File 'lib/ambling/column.rb', line 760 def color @color end |
#corner_radius ⇒ Object
- 0
-
(Number) Corner radius of a balloon. If you set it > 0, the balloon will not display arrow
785 786 787 |
# File 'lib/ambling/column.rb', line 785 def corner_radius @corner_radius end |
#enabled ⇒ Object
- true
-
(true / false)
755 756 757 |
# File 'lib/ambling/column.rb', line 755 def enabled @enabled end |
#max_width ⇒ Object
- 220
-
(Number) The maximum width of a balloon
780 781 782 |
# File 'lib/ambling/column.rb', line 780 def max_width @max_width end |
#text_color ⇒ Object
- #FFFFFF
-
(hex color code)
770 771 772 |
# File 'lib/ambling/column.rb', line 770 def text_color @text_color end |
#text_size ⇒ Object
- text_size
-
(Number)
775 776 777 |
# File 'lib/ambling/column.rb', line 775 def text_size @text_size end |