|
|
Simple Attributes
Each vector layer has a series of attributes attached to each feature. These attributes are defined in the FeatureType, and are separated into simple attributes and associations. This page will show you how to configure simple attributes. That means attribute of the following types: boolean, short, integer, long, float, double, string, date
The basics of attributesLet us first examine an example, take from the african countries layer from the tutorial application shipped with geomajas 1.3.1: <attribute>
<label>OPEC</label>
<name>OPEC</name>
<editable>true</editable>
<identifying>true</identifying>
<type>integer</type>
<validator>
<constraints>{min:0, max:1}</constraints>
<required>true</required>
<promptMessage>Member of OPEC?</promptMessage>
<invalidMessage>Invalid value</invalidMessage>
<rangeMessage>Out of range</rangeMessage>
</validator>
</attribute>
Let us now go over the different tags:
The optional validatorIf the validator is present in the attribute definition, then it must contain the following tags:
|
News
03/02/12plug-in updates



