Class: Ambling::Xy::Settings::Scroller

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/ambling/xy.rb

Constant Summary collapse

VALUES =
[:enabled,:color,:alpha,:bg_color,:bg_alpha,:height]

Instance Attribute Summary collapse

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#alphaObject

100

(Number) scrollbar alpha



846
847
848
# File 'lib/ambling/xy.rb', line 846

def alpha
  @alpha
end

#bg_alphaObject

100

(Number) scroller background alpha



856
857
858
# File 'lib/ambling/xy.rb', line 856

def bg_alpha
  @bg_alpha
end

#bg_colorObject

#F0F0F0

(hex color code) scroller background color. Separate color codes with comas for gradient



851
852
853
# File 'lib/ambling/xy.rb', line 851

def bg_color
  @bg_color
end

#colorObject

#DADADA

(hex color code) scrollbar color. Separate color codes with comas for gradient



841
842
843
# File 'lib/ambling/xy.rb', line 841

def color
  @color
end

#enabledObject

true

(true / false) whether to show scroller when chart is zoomed or not



836
837
838
# File 'lib/ambling/xy.rb', line 836

def enabled
  @enabled
end

#heightObject

10

(Number) scroller height



861
862
863
# File 'lib/ambling/xy.rb', line 861

def height
  @height
end