mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-4985] Added clear and apply button to SearchDateRangeAdvancedTabbedComponent. Moved logic from template to typescript file
This commit is contained in:
committed by
Jatin_Chugh
parent
5ca8856d1c
commit
131b2bcb52
+10
@@ -11,3 +11,13 @@
|
||||
</adf-search-date-range-advanced>
|
||||
</ng-container>
|
||||
</adf-search-filter-tabbed>
|
||||
|
||||
<div class="adf-facet-buttons" *ngIf="!settings?.hideDefaultAction">
|
||||
<button mat-button color="primary" data-automation-id="date-range-advanced-btn-clear" (click)="reset()">
|
||||
{{ 'SEARCH.FILTER.ACTIONS.CLEAR' | translate }}
|
||||
</button>
|
||||
<button mat-button color="primary" data-automation-id="date-range-advanced-btn-apply" [disabled]="hasValidValue()" (click)="submitValues()">
|
||||
{{ 'SEARCH.FILTER.ACTIONS.APPLY' | translate }}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
+16
@@ -168,4 +168,20 @@ export class SearchDateRangeAdvancedTabbedComponent implements SearchWidget, OnI
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
onQueriesCombined(query: string) {
|
||||
this.combinedQuery = query;
|
||||
}
|
||||
|
||||
onValuesToDisplayCombined(valuesToDisplay: string) {
|
||||
this.combinedValuesToDisplay = valuesToDisplay;
|
||||
}
|
||||
|
||||
onTabValid(tabValid: boolean, field: string) {
|
||||
this.tabsValidity[field] = tabValid;
|
||||
}
|
||||
|
||||
onDateRangedValueChanged(value: Partial<SearchDateRangeAdvanced>, field: string) {
|
||||
this.value[field] = value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user