source:
trunk/workshop-routing-foss4g/web/GeoExt/docs/_sources/lib/GeoExt/widgets/LegendImage.txt
@
76
Revision 76, 1.2 KB checked in by djay, 11 years ago (diff) | |
---|---|
|
Line | |
---|---|
1 | |
2 | .. currentmodule:: GeoExt |
3 | |
4 | :class:`GeoExt.LegendImage` |
5 | ================================================================================ |
6 | |
7 | |
8 | .. cssclass:: meta |
9 | |
10 | |
11 | Extends |
12 | * `Ext.BoxComponent <http://dev.sencha.com/deploy/dev/docs/?class=Ext.BoxComponent>`_ |
13 | |
14 | |
15 | |
16 | |
17 | xtype |
18 | ``gx_legendimage`` |
19 | |
20 | |
21 | |
22 | |
23 | .. class:: LegendImage(config) |
24 | |
25 | Show a legend image in a BoxComponent and make sure load errors are |
26 | dealt with. |
27 | |
28 | |
29 | |
30 | |
31 | |
32 | Config Options |
33 | -------------- |
34 | |
35 | Configuration properties in addition to |
36 | those listed for `Ext.BoxComponent <http://dev.sencha.com/deploy/dev/docs/?class=Ext.BoxComponent>`_. |
37 | |
38 | |
39 | .. describe:: defaultImgSrc |
40 | |
41 | ``String`` Path to image that will be used if the legend image fails |
42 | to load. Default is Ext.BLANK_IMAGE_URL. |
43 | |
44 | .. describe:: imgCls |
45 | |
46 | ``String`` Optional css class to apply to img tag |
47 | |
48 | .. describe:: url |
49 | |
50 | ``String`` The url of the image to load |
51 | |
52 | |
53 | |
54 | |
55 | |
56 | |
57 | Public Methods |
58 | -------------- |
59 | |
60 | Public methods in addition to those |
61 | listed for `Ext.BoxComponent <http://dev.sencha.com/deploy/dev/docs/?class=Ext.BoxComponent>`_. |
62 | |
63 | |
64 | .. method:: LegendImage.setUrl |
65 | |
66 | :param url: ``String`` The new URL. |
67 | |
68 | Sets the url of the legend image. |
69 | |
70 | |
71 | |
72 | |
73 |
Note: See TracBrowser
for help on using the repository browser.