3 <title>The source code</title>
4 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
5 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
7 <body onload="prettyPrint();">
8 <pre class="prettyprint lang-js">Ext.ux.SlidingPager = Ext.extend(Object, {
\r
9 init : function(pbar){
\r
10 Ext.each(pbar.items.getRange(2,6), function(c){
\r
13 var slider = new Ext.Slider({
\r
17 plugins: new Ext.ux.SliderTip({
\r
18 getText : function(s){
\r
19 return String.format('Page <b>{0}</b> of <b>{1}</b>', s.value, s.maxValue);
\r
23 changecomplete: function(s, v){
\r
28 pbar.insert(5, slider);
\r
30 change: function(pb, data){
\r
31 slider.maxValue = data.pages;
\r
32 slider.setValue(data.activePage);
\r
34 beforedestroy: function(){
\r