[ADF-4854] sticky header for task list (#5036)

* sticky header for task list

* fix html

* add docs

* update code docs
This commit is contained in:
Denys Vuika 2019-08-30 16:31:11 +01:00 committed by Eugenio Romano
parent 537d5b912f
commit 9e1a90adc8
4 changed files with 7 additions and 0 deletions

View File

@ -67,6 +67,7 @@ when the process list is empty:
| selectionMode | `string` | "single" | Row selection mode. Can be "none", "single" or "multiple". For multiple mode, you can use Cmd (macOS) or Ctrl (Win) modifier key to toggle selection for multiple rows. |
| sorting | [`ProcessListCloudSortingModel`](../../../lib/process-services-cloud/src/lib/process/process-list/models/process-list-sorting.model.ts)`[]` | | Array of objects specifying the sort order and direction for the list. The sort parameters are for BE sorting. |
| status | `string` | "" | Filter the processes to display only the ones with this status. |
| stickyHeader | `boolean` | false | Toggles the sticky header mode. |
### Events

View File

@ -70,6 +70,7 @@ when the task list is empty:
| sorting | [`TaskListCloudSortingModel`](../../../lib/process-services-cloud/src/lib/task/task-list/models/task-list-sorting.model.ts)`[]` | | Specifies how the table should be sorted. The parameters are for BE sorting. |
| standAlone | `boolean` | false | Filter the tasks. Display only the tasks that belong to a process in case is false or tasks that doesn't belong to a process in case of true. |
| status | `string` | "" | Filter the tasks. Display only tasks with status equal to the supplied value. |
| stickyHeader | `boolean` | false | Toggles the sticky header mode. |
### Events

View File

@ -6,6 +6,7 @@
[loading]="isLoading"
[multiselect]="multiselect"
[selectionMode]="selectionMode"
[stickyHeader]="stickyHeader"
(row-select)="onRowSelect($event)"
(row-unselect)="onRowUnselect($event)"
(rowClick)="onRowClick($event)"

View File

@ -117,6 +117,10 @@ export class TaskListCloudComponent extends DataTableSchema implements OnChanges
@Input()
multiselect: boolean = false;
/** Toggles the sticky header mode. */
@Input()
stickyHeader: boolean = false;
/**
* Specifies how the table should be sorted. The parameters are for BE sorting.
*/