Sortable (attribute of property)

From JRapid

Jump to: navigation, search

The "sortable" attribute can be specified when the "collection" attribute of a property is set to list. Sortable lists allows the user to move up or down the items of the list clicking on the up and down arrows.

Usage

 <property 
          name = NAME 
          label = LABEL 
          collection="list" 
          sortable="sortable" 
 />

Example

A product may specify a list of images which can be manually sorted.

 <entity label="Product" name="Product">
      ...
      <property collection="list" sortable="sortable" extendable="extendable" label="Image"
      name="image" type="image"/>
      ...
 </entity>
"sortable" example

See also

Personal tools