Sort component
Level: beginner
Use the Sort component to sort list data.
View the example of a configuration object that sorts list data below.
Example of a configuration object that sorts list data
{
"type": "crt.Sort",
"value": "\$ItemsSorting",
"sortItems": [
{
"attributeName": "Name",
"caption": "Name"
}
],
"valueChange": {
"request": "crt.SortChangeRequest"
}
}
string type
Component type. crt.Sort for the Sort component.
string value
The attribute from the viewModelConfig schema section.
array of objects sortItems
Array of parameters to sort.
Parameters
Name | Description |
|---|---|
string attributeName | The attribute from the |
string caption | Column caption. |
object valueChange
The crt.SortChangeRequest base request that opens a list of available sorting options.