mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-3170]Task/Process Add the sticky header feature (#5630)
* Add the sticky header feature * Add html
This commit is contained in:
@@ -65,6 +65,7 @@ when the process list is empty:
|
|||||||
| sort | `string` | | Defines the sort ordering of the list. Possible values are `created-desc`, `created-asc`, `ended-desc`, `ended-asc`. |
|
| sort | `string` | | Defines the sort ordering of the list. Possible values are `created-desc`, `created-asc`, `ended-desc`, `ended-asc`. |
|
||||||
| state | `string` | | Defines the state of the processes. Possible values are `running`, `completed` and `all` |
|
| state | `string` | | Defines the state of the processes. Possible values are `running`, `completed` and `all` |
|
||||||
| showContextMenu | `boolean` | false | Toggles custom context menu for the component. |
|
| showContextMenu | `boolean` | false | Toggles custom context menu for the component. |
|
||||||
|
| stickyHeader | `boolean` | false | Toggles the sticky header mode. |
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
|
|
||||||
|
@@ -74,6 +74,7 @@ when the task list is empty:
|
|||||||
| state | `string` | | Current state of the process. Possible values are: `completed`, `active`. |
|
| state | `string` | | Current state of the process. Possible values are: `completed`, `active`. |
|
||||||
| taskId | `string` | | The id of a task |
|
| taskId | `string` | | The id of a task |
|
||||||
| showContextMenu | `boolean` | false | Toggles custom context menu for the component. |
|
| showContextMenu | `boolean` | false | Toggles custom context menu for the component. |
|
||||||
|
| stickyHeader | `boolean` | false | Toggles the sticky header mode. |
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
|
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
[columns]="columns"
|
[columns]="columns"
|
||||||
[sorting]="sorting"
|
[sorting]="sorting"
|
||||||
[loading]="isLoading"
|
[loading]="isLoading"
|
||||||
|
[stickyHeader]="stickyHeader"
|
||||||
[selectionMode]="selectionMode"
|
[selectionMode]="selectionMode"
|
||||||
[multiselect]="multiselect"
|
[multiselect]="multiselect"
|
||||||
[resolverFn]="resolverFn"
|
[resolverFn]="resolverFn"
|
||||||
|
@@ -111,6 +111,10 @@ export class ProcessInstanceListComponent extends DataTableSchema implements OnC
|
|||||||
@Input()
|
@Input()
|
||||||
selectFirstRow: boolean = true;
|
selectFirstRow: boolean = true;
|
||||||
|
|
||||||
|
/** Toggles the sticky header mode. */
|
||||||
|
@Input()
|
||||||
|
stickyHeader: boolean = false;
|
||||||
|
|
||||||
/** Toggles custom context menu for the component. */
|
/** Toggles custom context menu for the component. */
|
||||||
@Input()
|
@Input()
|
||||||
showContextMenu: boolean = false;
|
showContextMenu: boolean = false;
|
||||||
|
@@ -6,6 +6,7 @@
|
|||||||
[columns]="columns"
|
[columns]="columns"
|
||||||
[sorting]="sorting"
|
[sorting]="sorting"
|
||||||
[loading]="isLoading"
|
[loading]="isLoading"
|
||||||
|
[stickyHeader]="stickyHeader"
|
||||||
[multiselect]="multiselect"
|
[multiselect]="multiselect"
|
||||||
[selectionMode]="selectionMode"
|
[selectionMode]="selectionMode"
|
||||||
[contextMenu]="showContextMenu"
|
[contextMenu]="showContextMenu"
|
||||||
|
@@ -127,6 +127,10 @@ export class TaskListComponent extends DataTableSchema implements OnChanges, Aft
|
|||||||
@Input()
|
@Input()
|
||||||
showContextMenu: boolean = false;
|
showContextMenu: boolean = false;
|
||||||
|
|
||||||
|
/** Toggles the sticky header mode. */
|
||||||
|
@Input()
|
||||||
|
stickyHeader: boolean = false;
|
||||||
|
|
||||||
/** Emitted before the context menu is displayed for a row. */
|
/** Emitted before the context menu is displayed for a row. */
|
||||||
@Output()
|
@Output()
|
||||||
showRowContextMenu = new EventEmitter<DataCellEvent>();
|
showRowContextMenu = new EventEmitter<DataCellEvent>();
|
||||||
|
Reference in New Issue
Block a user