mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3103] Added new inputs, columns and overall improvement to Task List Demo (#3653)
* Added columns, inputs and error message alert * [ADF-3103] Fixed variable name typo * Add basic documentation
This commit is contained in:
committed by
Eugenio Romano
parent
8d8ab1e682
commit
547c56aeef
@@ -111,6 +111,18 @@ export class TaskListComponent extends DataTableSchema implements OnChanges, Aft
|
||||
@Input()
|
||||
selectFirstRow: boolean = true;
|
||||
|
||||
/** The id of a task */
|
||||
@Input()
|
||||
taskId: string;
|
||||
|
||||
/** Toggles inclusion of Process Instances */
|
||||
@Input()
|
||||
includeProcessInstance: boolean;
|
||||
|
||||
/** Starting point of the */
|
||||
@Input()
|
||||
start: number = 0;
|
||||
|
||||
/** Emitted when a task in the list is clicked */
|
||||
@Output()
|
||||
rowClick: EventEmitter<string> = new EventEmitter<string>();
|
||||
@@ -321,7 +333,7 @@ export class TaskListComponent extends DataTableSchema implements OnChanges, Aft
|
||||
|
||||
/**
|
||||
* Optimize name field
|
||||
* @param istances
|
||||
* @param instances
|
||||
*/
|
||||
private optimizeNames(instances: any[]): any[] {
|
||||
instances = instances.map(t => {
|
||||
@@ -344,10 +356,11 @@ export class TaskListComponent extends DataTableSchema implements OnChanges, Aft
|
||||
assignment: this.assignment,
|
||||
state: this.state,
|
||||
sort: this.sort,
|
||||
landingTaskId: this.landingTaskId,
|
||||
page: this.page,
|
||||
size: this.size,
|
||||
start: 0
|
||||
start: this.start,
|
||||
taskId: this.taskId,
|
||||
includeProcessInstance: this.includeProcessInstance
|
||||
};
|
||||
return new TaskQueryRequestRepresentationModel(requestNode);
|
||||
}
|
||||
|
Reference in New Issue
Block a user