File

projects/components/widgets/data/form/src/live-filter/live-filter.component.doc.ts

Description

The wmLivefilter widget defines a live filter in the layout.

Index

Methods
Inputs

Methods

clearFilter
clearFilter()

This method is used to clear the filter values and trigger the filter call.

Returns : void
filter
filter()

This method is used to trigger the filter call.

Returns : void
onBeforeservicecall
onBeforeservicecall($data: any)

Callback is triggered on save of form and before sending service call. This callback can be used to validate or modify data.

Parameters :
Name Type Optional Description
$data any No

Input data collected from the filter widget

Returns : void | boolean

if the callback returns false, filter call is stopped. Anything else, filter call continues with modified data.

onError
onError($data: any)

This event handler is called whenever the filter call returns an error.

Parameters :
Name Type Optional Description
$data any No

response returned from the service call

Returns : void
onSuccess
onSuccess($data: any)

This event handler is called whenever the filter call is success.

Parameters :
Name Type Optional Description
$data any No

response returned from the service call

Returns : void

Inputs

autocomplete
Type : boolean
Default value : false

Enabling this property turns on auto-completion in the editor. As the user types the choices in the drop-down select editor change dynamically.

autoupdate
Type : boolean
Default value : false

Set this property to true, if you want to trigger the filter automatically on change of any input field inside the live filter.

captionalign
Type : string
Default value : 'left'

Defines the alignment of the caption elements of widgets inside the form.

Allowed Values: left, center, right

left: Caption is aligned to left.

center: Caption is aligned in center.

right: Caption is aligned to right.

captionposition
Type : string
Default value : 'left'

Defines the position of the caption elements of widgets inside the form.

Allowed Values: left, top, right

left: Caption is positioned to left of form widget.

top: Caption is positioned on top of form widget.

right: Caption is positioned to right of form widget.

class
Type : string

Class of the widget.

collapsible
Type : boolean
Default value : false

Enable control for collapsing and expanding the widget.

dataset
Type : any

This property specifies the datasource to which values of form are submitted.

Bindable: true

enableemptyfilter
Type : string

This property enables 'No Value' option for select and radioset widgets in Live Filter. 'No Value' option can be used for filtering null or empty records.

Allowed Values: NULL, EMPTY, NULL AND EMPTY

NULL:Filtering on 'No Value' returns null records.

EMPTY: Filtering on 'No Value' returns empty records.

NULL AND EMPTY: Filtering on 'No Value' returns both null and empty records.

expanded
Type : boolean
Default value : false

Set the default state of the form whether it is expanded or collapsed.

iconclass
Type : string
Default value : 'wi wi-filter-list'

CSS class of the icon showed in form header.

Bindable: true

name
Type : string

Name of the Live Filter widget.

pagesize
Type : number
Default value : 20

This property sets the number of records to be fetched by the live filter

show
Type : boolean

This property will be used to show/hide the live filter widget on the web page.

Bindable: true

subheading
Type : string

This property defines the sub heading or title for the widget.

Bindable: true

tabindex
Type : number
Default value : 0

This property specifies the tab order of the Live Filter Widget.

title
Type : string

Title of the Live Filter.

Bindable: true

result-matching ""

    No results matching ""