3
* Copyright(c) 2006-2009 Ext JS, LLC
5
* http://www.extjs.com/license
8
* @class Ext.ux.SliderTip
10
* Simple plugin for using an Ext.Tip with a slider to show the slider value
12
Ext.ux.SliderTip = Ext.extend(Ext.Tip, {
15
init : function(slider){
16
slider.on('dragstart', this.onSlide, this);
17
slider.on('drag', this.onSlide, this);
18
slider.on('dragend', this.hide, this);
19
slider.on('destroy', this.destroy, this);
22
onSlide : function(slider){
24
this.body.update(this.getText(slider));
26
this.el.alignTo(slider.thumb, 'b-t?', this.offsets);
29
getText : function(slider){
30
return String(slider.getValue());