Interface: IFilterable¶
Hierarchy¶
- IFilterable
Summary¶
Methods¶
Class Methods¶
- getFilterCriteria
- getFilterCriteriaAsync
- getFilterFeedbackSorters
- getFilterItemString
- getSelectedValues
- getSorterCriteria
- redrawFilterFeedback
- redrawUIFilterFeedback
- setFilterResult
- standardFilterUpdated
Inherited Methods¶
Currently none inherited from the parent class(es).
Methods¶
getFilterCriteria¶
▸ getFilterCriteria(name: string, values: Array‹object›, isArrayFilterProperty?: boolean): FilterCriteria
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string | the name of the criteria to find |
values |
Array‹object› | the values of the criteria to find |
isArrayFilterProperty? |
boolean | is the array type of criteria |
Returns: FilterCriteria
return the filter criteria
getFilterCriteriaAsync¶
▸ getFilterCriteriaAsync(name: string, values: Array‹object›, isArrayFilterProperty?: boolean): Promise‹[FilterCriteria, Array‹object›]›
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string | the name of the criteria to find |
values |
Array‹object› | the values of the criteria to find |
isArrayFilterProperty? |
boolean | is the array type of criteria |
Returns: Promise‹[FilterCriteria, Array‹object›]›
return array [ the filter criteria, values of the criteria ]
getFilterFeedbackSorters¶
▸ getFilterFeedbackSorters(): string[]
Returns: string[]
return sorters managed on filter feedback bar of filterable object
getFilterItemString¶
▸ getFilterItemString(name: string, value: any): string
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string | the name of the criteria |
value |
any | the value of the criteria |
Returns: string
return string can be used in filter string
getSelectedValues¶
▸ getSelectedValues(): Array‹FilterCriteria›
Returns: Array‹FilterCriteria›
return selected list of filter criteria
getSorterCriteria¶
▸ getSorterCriteria(name: string): FilterCriteria
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string | the name of the criteria to find |
Returns: FilterCriteria
redrawFilterFeedback¶
▸ redrawFilterFeedback(): any
Returns: any
redrawUIFilterFeedback¶
▸ redrawUIFilterFeedback(): any
Returns: any
setFilterResult¶
▸ setFilterResult(result: Array‹FilterCriteria›, redraw: boolean): any
Parameters:
| Name | Type | Description |
|---|---|---|
result |
Array‹FilterCriteria› | the list of criteria for filter/sorter |
redraw |
boolean | if redrawing the section with the filter. Default value is true |
Returns: any
standardFilterUpdated¶
▸ standardFilterUpdated(result: Array‹FilterCriteria›): any
Parameters:
| Name | Type | Description |
|---|---|---|
result |
Array‹FilterCriteria› | the list of criteria for filter/sorter |
Returns: any