mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-08-07 17:48:54 +00:00
[ADF-3438] Task List Demo - created date filter and pagination (#3782)
* date filter and pagination * remove wrong mat-form-field
This commit is contained in:
@@ -55,6 +55,10 @@ export class TaskListDemoComponent implements OnInit {
|
||||
|
||||
page: number;
|
||||
|
||||
dueAfter: string;
|
||||
|
||||
dueBefore: string;
|
||||
|
||||
includeProcessInstance: boolean;
|
||||
|
||||
assignmentOptions = [
|
||||
@@ -111,6 +115,8 @@ export class TaskListDemoComponent implements OnInit {
|
||||
taskSort: new FormControl(''),
|
||||
taskSize: new FormControl(''),
|
||||
taskPage: new FormControl(''),
|
||||
taskDueAfter: new FormControl(''),
|
||||
taskDueBefore: new FormControl(''),
|
||||
taskStart: new FormControl('', [Validators.pattern('^[0-9]*$')]),
|
||||
taskIncludeProcessInstance: new FormControl('')
|
||||
});
|
||||
@@ -138,6 +144,8 @@ export class TaskListDemoComponent implements OnInit {
|
||||
this.start = taskFilter.taskStart;
|
||||
this.size = taskFilter.taskSize;
|
||||
this.page = taskFilter.taskPage;
|
||||
this.dueAfter = taskFilter.taskDueAfter;
|
||||
this.dueBefore = taskFilter.taskDueBefore;
|
||||
|
||||
this.includeProcessInstance = taskFilter.taskIncludeProcessInstance === 'include';
|
||||
}
|
||||
@@ -159,6 +167,8 @@ export class TaskListDemoComponent implements OnInit {
|
||||
this.start = null;
|
||||
this.size = null;
|
||||
this.page = null;
|
||||
this.dueAfter = null;
|
||||
this.dueBefore = null;
|
||||
}
|
||||
|
||||
isFormValid() {
|
||||
@@ -212,4 +222,12 @@ export class TaskListDemoComponent implements OnInit {
|
||||
get taskPage(): AbstractControl {
|
||||
return this.taskListForm.get('taskPage');
|
||||
}
|
||||
|
||||
get taskDueAfter(): AbstractControl {
|
||||
return this.taskListForm.get('taskDueAfter');
|
||||
}
|
||||
|
||||
get taskDueBefore(): AbstractControl {
|
||||
return this.taskListForm.get('taskDueBefore');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user