source:
trunk/workshop-routing-foss4g/web/GeoExt/docs/_sources/lib/GeoExt/plugins/AttributeForm.txt
@
76
Revision 76, 1.6 KB checked in by djay, 12 years ago (diff) | |
---|---|
|
Line | |
---|---|
1 | |
2 | .. currentmodule:: GeoExt.plugins |
3 | |
4 | :class:`GeoExt.plugins.AttributeForm` |
5 | ================================================================================ |
6 | |
7 | |
8 | .. cssclass:: meta |
9 | |
10 | |
11 | |
12 | |
13 | |
14 | ptype |
15 | ``gx_attributeform`` |
16 | |
17 | |
18 | |
19 | .. class:: AttributeForm |
20 | |
21 | This plugin allows creating form items from attribute records |
22 | and fill a form panel with these items. |
23 | |
24 | |
25 | |
26 | Example Use |
27 | ----------- |
28 | |
29 | Sample code showing how to use an Ext form panel as a feature |
30 | attribute form (for editing features for example). |
31 | |
32 | .. code-block:: javascript |
33 | |
34 | var formPanel = new Ext.form.FormPanel({ |
35 | autoScroll: true, |
36 | height: 300, |
37 | width: 350, |
38 | defaults: { |
39 | maxLengthText: "too long", |
40 | minLengthText: "too short" |
41 | } |
42 | plugins: [ |
43 | new GeoExt.plugins.AttributeForm({ |
44 | attributeStore: new GeoExt.data.AttributeStore({ |
45 | url: "http://some.wfs", |
46 | baseParams: { |
47 | "SERVICE": "WFS", |
48 | "VERSION": "1.1.0", |
49 | "REQUEST": "DescribeFeatureType", |
50 | "TYPENAME": "the_typename" |
51 | } |
52 | }) |
53 | }) |
54 | ] |
55 | }); |
56 | |
57 | |
58 | |
59 | |
60 | Config Options |
61 | -------------- |
62 | |
63 | Configuration properties. |
64 | |
65 | |
66 | .. describe:: attributeStore |
67 | |
68 | ``Ext.data.Store`` The attribute store to bind to this plugin. |
69 | It can be any Ext store configured with a |
70 | :class:`GeoExt.data.AttributeReader`. If set form items |
71 | will be created from the attribute records in the form. In |
72 | most cases this store will be a :class:`GeoExt.data.AttributeStore`. |
73 | |
74 | |
75 | |
76 | |
77 | |
78 | |
79 | |
80 | |
81 |
Note: See TracBrowser
for help on using the repository browser.