Priority Field
Overview
When model has priority type field, then this model becames "prioritizable". This means, that user will see entities of this model sorted using this priority and will be able to change its order. Value of this field will be generated automatically as next number in scope (count from '1'). When "prioritizable"Â entity is deleted, priority fields are updated to fill order number gap. Model can contains only one field of priority type.
If model should be prioritetizable globally, don't use scope option.Â
If priority is scoped, scope must be put after belongsTo field.Â
Attributes
name | type | required | default value | description |
---|---|---|---|---|
name | string | yes | none | Name  of the field, must be unique in this model scope. |
scope | string | no | none | Name of the "belongsTo" field which will be used to scope priority. |
Example
<priority name="priority" scope="owner" />