mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
1005 B
1005 B
Added, Status
| Added | Status |
|---|---|
| v2.4.0 | Active |
Sorting Picker Component
Provides an ability to pick one of the predefined sorting definitions and define sorting direction:
<adf-sorting-picker
[options]="options"
[selected]="value"
[ascending]="ascending"
(change)="onChanged($event)">
</adf-sorting-picker>
Options format
You can bind a collection of any objects that expose the following properties:
{
key: string;
label: string;
}
Properties
| Name | Type | Default Value | Description |
| options | Array<{key: string, label: string}> | [] | Available sorting options. |
| selected | string | | Currently selected option key. |
| ascending | boolean | true | Current sorting direction. |
Events
| Name | Type | Description |
|---|---|---|
| change | EventEmitter<{ key: string, ascending: boolean }> |
Raised each time sorting key or direction gets changed. |
