label
This is a text label for non-editable values (e.g. timestamp, creation time...etc)

Special properties of field

There is no any special properties.

Usage

1
{
2
type: "label",
3
label: "Created",
4
model: "created"
5
}
Copied!
Or you can format the value with moment:
1
{
2
type: "label",
3
label: "Created",
4
model: "created",
5
get: function(model) {
6
return model && model.created ? moment(model.created).format("LLL") : "-";
7
}
8
}
Copied!
Last modified 3yr ago