source: trunk/web/addons/job_monarch/lib/extjs-30/examples/slider/slider.js @ 625

Last change on this file since 625 was 625, checked in by ramonb, 15 years ago

lib/extjs-30:

  • new ExtJS 3.0
File size: 1.3 KB
Line 
1/*!
2 * Ext JS Library 3.0.0
3 * Copyright(c) 2006-2009 Ext JS, LLC
4 * licensing@extjs.com
5 * http://www.extjs.com/license
6 */
7Ext.onReady(function(){
8
9    new Ext.Slider({
10        renderTo: 'basic-slider',
11        width: 214,
12        minValue: 0,
13        maxValue: 100
14    });
15
16    new Ext.Slider({
17        renderTo: 'increment-slider',
18        width: 214,
19        value:50,
20        increment: 10,
21        minValue: 0,
22        maxValue: 100
23    });
24
25    new Ext.Slider({
26        renderTo: 'vertical-slider',
27        height: 214,
28        vertical: true,
29        minValue: 0,
30        maxValue: 100
31    });
32
33    new Ext.Slider({
34        renderTo: 'tip-slider',
35        width: 214,
36        minValue: 0,
37        maxValue: 100,
38        plugins: new Ext.ux.SliderTip()
39    });
40
41    var tip = new Ext.ux.SliderTip({
42        getText: function(slider){
43            return String.format('<b>{0}% complete</b>', slider.getValue());
44        }
45    });
46
47    new Ext.Slider({
48        renderTo: 'custom-tip-slider',
49        width: 214,
50        increment: 10,
51        minValue: 0,
52        maxValue: 100,
53        plugins: tip
54    });
55
56    new Ext.Slider({
57        renderTo: 'custom-slider',
58        width: 214,
59        increment: 10,
60        minValue: 0,
61        maxValue: 100,
62        plugins: new Ext.ux.SliderTip()
63    });
64});
Note: See TracBrowser for help on using the repository browser.