source:
trunk/workshop-routing-foss4g/web/GeoExt/docs/_sources/lib/GeoExt/widgets/tips/SliderTip.txt
@
81
Revision 76, 1.2 KB checked in by djay, 12 years ago (diff) | |
---|---|
|
Line | |
---|---|
1 | |
2 | .. currentmodule:: GeoExt |
3 | |
4 | :class:`GeoExt.SliderTip` |
5 | ================================================================================ |
6 | |
7 | |
8 | .. cssclass:: meta |
9 | |
10 | |
11 | Extends |
12 | * `Ext.Tip <http://dev.sencha.com/deploy/dev/docs/?class=Ext.slider.Tip>`_ |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | |
20 | .. class:: SliderTip(config) |
21 | |
22 | Create a slider tip displaying ``Ext.Slider`` values over slider thumbs. |
23 | |
24 | |
25 | |
26 | Example Use |
27 | ----------- |
28 | |
29 | Sample code to create a slider tip to display slider value on hover: |
30 | |
31 | .. code-block:: javascript |
32 | |
33 | var slider = new Ext.Slider({ |
34 | renderTo: document.body, |
35 | width: 200, |
36 | plugins: new GeoExt.SliderTip() |
37 | }); |
38 | |
39 | |
40 | |
41 | |
42 | Config Options |
43 | -------------- |
44 | |
45 | Configuration properties in addition to |
46 | those listed for `Ext.Tip <http://dev.sencha.com/deploy/dev/docs/?class=Ext.slider.Tip>`_. |
47 | |
48 | |
49 | .. describe:: hover |
50 | |
51 | ``Boolean`` |
52 | Display the tip when hovering over the thumb. If ``false``, tip will |
53 | only be displayed while dragging. Default is ``true``. |
54 | |
55 | .. describe:: minWidth |
56 | |
57 | ``Number`` |
58 | Minimum width of the tip. Default is 10. |
59 | |
60 | .. describe:: offsets |
61 | |
62 | ``Array(Number)`` |
63 | A two item list that provides x, y offsets for the tip. Default is |
64 | [0, -10]. |
65 | |
66 | |
67 | |
68 | |
69 | |
70 | |
71 | |
72 | |
73 |
Note: See TracBrowser
for help on using the repository browser.