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.
If empty priority won't be scoped.

Example

<priority name="priority" scope="owner" />