source:
trunk/workshop-routing-foss4g/web/GeoExt/docs/_sources/lib/GeoExt/data/AttributeReader.txt
@
76
Revision 76, 1.1 KB checked in by djay, 12 years ago (diff) | |
---|---|
|
Rev | Line | |
---|---|---|
[76] | 1 | |
2 | .. currentmodule:: GeoExt.data | |
3 | ||
4 | :class:`GeoExt.data.AttributeReader` | |
5 | ================================================================================ | |
6 | ||
7 | ||
8 | .. cssclass:: meta | |
9 | ||
10 | ||
11 | Extends | |
12 | * `Ext.data.DataReader <http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.DataReader>`_ | |
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | .. class:: AttributeReader(meta, recordType) | |
21 | ||
22 | :arg meta: ``Object`` Reader configuration. | |
23 | :arg recordType: ``Array or Ext.data.Record`` An array of field | |
24 | configuration objects or a record object. | |
25 | ||
26 | Create a new attributes reader object. | |
27 | ||
28 | Valid meta properties: | |
29 | ||
30 | * format - ``OpenLayers.Format`` A parser for transforming the XHR response | |
31 | into an array of objects representing attributes. Defaults to | |
32 | an ``OpenLayers.Format.WFSDescribeFeatureType`` parser. | |
33 | * ignore - ``Object`` Properties of the ignore object should be field names. | |
34 | Values are either arrays or regular expressions. | |
35 | * feature - ``OpenLayers.Feature.Vector`` A vector feature. If provided | |
36 | records created by the reader will include a field named "value" | |
37 | referencing the attribute value as set in the feature. | |
38 | ||
39 | ||
40 | ||
41 | ||
42 | ||
43 | ||
44 | ||
45 | ||
46 | ||
47 | ||
48 | ||
49 |
Note: See TracBrowser
for help on using the repository browser.