File

src/ui/filter/smart-static-filter.component.ts

Description

The static templated version of the Smart Filter. The Smart Static Filter component allows the usage of custom templates.

Extends

AbstractFormChild

Implements

ISmartFilter OnInit OnChanges OnDestroy

Metadata

Index

Properties
Methods
Inputs
Outputs
HostListeners

Constructor

constructor(registry: SmartFilterRegistry, smartHttp: SmartHttpService, serviceAdapter: SmartServiceAdapter, widgetFactory: WidgetFacadeFactory, injector: Injector)
Parameters :
Name Type Optional
registry SmartFilterRegistry No
smartHttp SmartHttpService No
serviceAdapter SmartServiceAdapter No
widgetFactory WidgetFacadeFactory No
injector Injector No

Inputs

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

Outputs

on-filter
Type : EventEmitter<FilterEvent>

Fires when the user presses the enter key or clicks the filter button.

HostListeners

keyup
Arguments : '$event'
keyup(ev: KeyboardEvent)
Parameters :
Name Optional
ev No

Methods

dynamicFilterReady
dynamicFilterReady(event: any)
Parameters :
Name Type Optional
event any No
Returns : void
Public handleLayoutChange
handleLayoutChange(newLayout: any)
Parameters :
Name Type Optional
newLayout any No
Returns : void
initializeFromDataSource
initializeFromDataSource(dataSource: SmartDataSource)

Initialises the JSDO schema from the given data source

Parameters :
Name Type Optional
dataSource SmartDataSource No
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 :
Name Type Optional
ev KeyboardEvent No
Returns : void
registerCancelButton
registerCancelButton(button: CancelButtonDirective)

Registers a cancel button with this filter

Parameters :
Name Type Optional
button CancelButtonDirective No
Returns : void
registerFilterButton
registerFilterButton(button: FilterButtonDirective)

Registers a filter button with this filter.

Parameters :
Name Type Optional
button FilterButtonDirective No
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 :
Name Type Optional
operator ForFilterFieldDirective No
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 :
Name Type Optional
input ForFieldDirective No
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 :
Name Type Optional
objectName string No
Returns : void

void

Properties

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
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""