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.
ISmartFilter
OnInit
OnChanges
OnDestroy
| changeDetection | ChangeDetectionStrategy.Eager |
| selector | smart-static-filter |
| template | |
Properties |
Methods |
Inputs |
Outputs |
HostListeners |
constructor(registry: SmartFilterRegistry, smartHttp: SmartHttpService, serviceAdapter: SmartServiceAdapter, widgetFactory: WidgetFacadeFactory, injector: Injector)
|
||||||||||||||||||
|
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 |
| ignoreFlexboxLayout |
Type : boolean
|
| smart-help-text |
Type : string | undefined
|
|
Sets the HelpText value for this form child. |
| smart-instance-name |
Type : string
|
|
The instance name of the component |
| on-filter |
Type : EventEmitter<FilterEvent>
|
|
Fires when the user presses the enter key or clicks the filter button. |
| keyup | ||||
Arguments : '$event'
|
||||
keyup(ev: KeyboardEvent)
|
||||
|
Parameters :
|
| dynamicFilterReady | ||||||
dynamicFilterReady(event: any)
|
||||||
|
Parameters :
Returns :
void
|
| Public handleLayoutChange | ||||||
handleLayoutChange(newLayout: 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
|
| Public keyUpListener | ||||||
keyUpListener(ev: KeyboardEvent)
|
||||||
Decorators :
@HostListener('keyup', ['$event'])
|
||||||
|
Parameters :
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
|
| Public notifyLoadingFinished | ||||||
notifyLoadingFinished(objectName: string)
|
||||||
|
Notifies the parent Smart Form that this form child has finished loading
Parameters :
Returns :
void
void |
| cancelButtonQL |
Type : QueryList<CancelButtonDirective>
|
Decorators :
@ContentChildren(undefined, {descendants: true})
|
| filterButtonQL |
Type : QueryList<FilterButtonDirective>
|
Decorators :
@ContentChildren(undefined, {descendants: true})
|
| 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. |
| forFieldQL |
Type : QueryList<ForFieldDirective>
|
Decorators :
@ContentChildren(undefined, {descendants: true})
|
| forFilterFieldQL |
Type : QueryList<ForFilterFieldDirective>
|
Decorators :
@ContentChildren(undefined, {descendants: true})
|
| self |
Type : unknown
|
Default value : this
|
| template |
Type : string
|
|
This filter's HTML template |
| Public injector |
Type : Injector
|