Class: Ambling::Line::Settings::Scroller

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

Constant Summary collapse

VALUES =
[:enabled,:y,: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



342
343
344
# File 'lib/ambling/line.rb', line 342

def alpha
  @alpha
end

#bg_alphaObject

100

(Number) scroller background alpha



352
353
354
# File 'lib/ambling/line.rb', line 352

def bg_alpha
  @bg_alpha
end

#bg_colorObject

#F0F0F0

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



347
348
349
# File 'lib/ambling/line.rb', line 347

def bg_color
  @bg_color
end

#colorObject

#DADADA

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



337
338
339
# File 'lib/ambling/line.rb', line 337

def color
  @color
end

#enabledObject

true

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



327
328
329
# File 'lib/ambling/line.rb', line 327

def enabled
  @enabled
end

#heightObject

10

(Number) scroller height



357
358
359
# File 'lib/ambling/line.rb', line 357

def height
  @height
end

#yObject

(Number) Y position of scroller. If not set here, will be displayed above plot area



332
333
334
# File 'lib/ambling/line.rb', line 332

def y
  @y
end