35 lines
969 B
TypeScript
35 lines
969 B
TypeScript
export class SearchUtilsClass{
|
|
page:number = 1;
|
|
size:number = 10;
|
|
status:number = 1;
|
|
keyword:string = "";
|
|
baseUrl:string = "";
|
|
totalResults = null;
|
|
totalResultsNoFilters:number; // for organization landing - tab with projects
|
|
sortBy: string = "";
|
|
}
|
|
|
|
export class SearchCustomFilter{
|
|
fieldName:string; //Country
|
|
queryFieldName:string; //country
|
|
valueId:string; //gr
|
|
valueName:string; // Greece
|
|
isHiddenFilter:boolean;
|
|
constructor( fieldName:string, queryFieldName:string, valueId:string, valueName:string ){
|
|
this.isHiddenFilter = true;
|
|
this.fieldName = fieldName;
|
|
this.queryFieldName = queryFieldName;
|
|
this.valueId = valueId;
|
|
this.valueName = valueName;
|
|
}
|
|
// public setFilter(filter:SearchCustomFilter){
|
|
// if(!filter){
|
|
// return;
|
|
// }
|
|
// this.fieldName = filter.fieldName;
|
|
// this.queryFieldName = filter.queryFieldName;
|
|
// this.valueId = filter.valueId;
|
|
// this.valueName = filter.valueName;
|
|
// }
|
|
}
|