X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..HEAD:/src/slider/Multi.js diff --git a/src/slider/Multi.js b/src/slider/Multi.js index 8974c8a6..16c684ad 100644 --- a/src/slider/Multi.js +++ b/src/slider/Multi.js @@ -1,25 +1,35 @@ +/* + +This file is part of Ext JS 4 + +Copyright (c) 2011 Sencha Inc + +Contact: http://www.sencha.com/contact + +GNU General Public License Usage +This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. + +If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. + +*/ /** - * @class Ext.slider.Multi - * @extends Ext.form.field.Base - *

Slider which supports vertical or horizontal orientation, keyboard adjustments, configurable snapping, axis - * clicking and animation. Can be added as an item to any container. In addition, - * {@img Ext.slider.Multi/Ext.slider.Multi.png Ext.slider.Multi component} - *

Example usage:

+ * Slider which supports vertical or horizontal orientation, keyboard adjustments, configurable snapping, axis clicking + * and animation. Can be added as an item to any container. + * * Sliders can be created with more than one thumb handle by passing an array of values instead of a single one: -
-    Ext.create('Ext.slider.Multi', {
-        width: 200,
-        values: [25, 50, 75],
-        increment: 5,
-        minValue: 0,
-        maxValue: 100,
-
-        //this defaults to true, setting to false allows the thumbs to pass each other
-        {@link #constrainThumbs}: false,
-        renderTo: Ext.getBody()
-    });  
-
- * @xtype multislider + * + * @example + * Ext.create('Ext.slider.Multi', { + * width: 200, + * values: [25, 50, 75], + * increment: 5, + * minValue: 0, + * maxValue: 100, + * + * // this defaults to true, setting to false allows the thumbs to pass each other + * constrainThumbs: false, + * renderTo: Ext.getBody() + * }); */ Ext.define('Ext.slider.Multi', { extend: 'Ext.form.field.Base', @@ -35,11 +45,12 @@ Ext.define('Ext.slider.Multi', { 'Ext.layout.component.field.Slider' ], + // note: {id} here is really {inputId}, but {cmpId} is available fieldSubTpl: [ - '
', - '