priority
priority(
value): (target,key) =>void
Property level decorator. Used to specify the default display order. For User resource we can add this decorator to change display order of properties:
class User {
@priority(2)
name!: string;
@priority(1)
contactId?: string;
}
Now in User table contactId will we first, and name will be second.
Sets {@link PropertyMeta.priority}.
Parameters
value
number
The priority value.
Returns
(
target,key):void
Parameters
target
object
key
string
Returns
void