Bienvenue sur PostGIS.fr

Bienvenue sur PostGIS.fr , le site de la communauté des utilisateurs francophones de PostGIS.

PostGIS ajoute le support d'objets géographique à la base de données PostgreSQL. En effet, PostGIS "spatialise" le serverur PostgreSQL, ce qui permet de l'utiliser comme une base de données SIG.

Maintenu à jour, en fonction de nos disponibilités et des diverses sorties des outils que nous testons, nous vous proposons l'ensemble de nos travaux publiés en langue française.

source: trunk/workshop-routing-foss4g/web/GeoExt/docs/_sources/lib/GeoExt/plugins/AttributeForm.txt @ 81

Revision 76, 1.6 KB checked in by djay, 12 years ago (diff)

Ajout du répertoire web

  • Property svn:executable set to *
Line 
1
2.. currentmodule:: GeoExt.plugins
3
4:class:`GeoExt.plugins.AttributeForm`
5================================================================================
6
7
8.. cssclass:: meta
9
10
11
12
13
14ptype
15    ``gx_attributeform``
16
17
18
19.. class:: AttributeForm
20
21This plugin allows creating form items from attribute records
22and fill a form panel with these items.
23
24
25
26Example Use
27-----------
28
29Sample code showing how to use an Ext form panel as a feature
30attribute 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
60Config Options
61--------------
62
63Configuration 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.