src/ui/filter/smart-static-filter.component.ts
The static templated version of the Smart Filter. The Smart Static Filter component allows the usage of custom templates.
selector | smart-static-filter |
template |
|
Properties |
Methods |
Inputs |
Outputs |
HostListeners |
constructor(registry: SmartFilterRegistry, smartHttp: SmartHttpService, serviceAdapter: SmartServiceAdapter)
|
||||||||||||
Parameters :
|
smart-object-name |
Type : string
|
The name that this filter will use to register itself with the Smart Filter Registry. |
smart-template |
Type : string
|
The template URL from which to fetch this filter's template |
on-filter |
Type : EventEmitter<FilterEvent>
|
Fires when the user presses the enter key or clicks the filter button. |
keyup |
Arguments : '$event'
|
keyup(ev: KeyboardEvent)
|
dynamicFilterReady | ||||||
dynamicFilterReady(event: any)
|
||||||
Parameters :
Returns :
void
|
initializeFromDataSource | ||||||
initializeFromDataSource(dataSource: SmartDataSource)
|
||||||
Initialises the JSDO schema from the given data source
Parameters :
Returns :
void
|
initTemplate |
initTemplate()
|
Fetches the HTML template and adds any necessary HTML attributes to inputs, then renders the Smart Static Filter component.
Returns :
void
|
registerCancelButton | ||||||
registerCancelButton(button: CancelButtonDirective)
|
||||||
Registers a cancel button with this filter
Parameters :
Returns :
void
|
registerFilterButton | ||||||
registerFilterButton(button: FilterButtonDirective)
|
||||||
Registers a filter button with this filter.
Parameters :
Returns :
void
|
registerFilterOperator | ||||||
registerFilterOperator(operator: ForFilterFieldDirective)
|
||||||
Registers a filter operator with this filter. Filter operators are any HTML elements that expose a value property.
Parameters :
Returns :
void
|
registerInputField | ||||||
registerInputField(input: ForFieldDirective)
|
||||||
Registers a filter field with this filter. Filter fields are any HTML elements that expose a value property.
Parameters :
Returns :
void
|
removeFilters |
removeFilters()
|
Removes all filter values.
Returns :
void
|
componentDeps |
Type : []
|
Default value : []
|
filterFields |
Type : ForFieldDirective[]
|
Default value : []
|
The filter fields registered with this filter. |
filterOperators |
Type : any
|
Default value : {}
|
The filter operator elements registered with this filter. |
self |
Default value : this
|
template |
Type : string
|
This filter's HTML template |