Skip to main content

foundation-forms.filters

Home > @genesislcap/foundation-forms > Filters

Filters class​

Foundation filters component for automatically generated filters based on json schema obtained from the api, supplied initial data or supplied JSON schema. Allowing customisable filters elements using UI schema and set of custom renderers

change - Fired when built criteria (value) updates submit - Fired when filter values are submitted

Signature:

export declare class Filters extends Filters_base 

Extends: Filters_base

Properties​

Property

Modifiers

Type

Description

allSavedFilters

any[]

data

any

Initial data for the filters.

filterName

string

jsonSchema

JSONSchema7

Alternatively to providing Form.resourceName you can hardcode the JSON schema on the client.

kvStorage

KVStorage

prefix

string

Name of the design system prefix that will be used in renderers.

renderers

RendererEntry[]

Allows to provide the main set of renderers used by the form. If not provided, the built-in renderers will be used by default.

resourceName

string

Name of the backend resource which will provide metadata used to generate filters.

showFilterPersistenceControls

boolean

Controls the visibility of the filter persistence controls UI.

uischema

UiSchema

UI schema used to define configuration of the layout and elements in the filters Check UiSchema for possible options.

value

string

Created criteria based on the given data that can be used to filter the data.

Methods​

Method

Modifiers

Description

connectedCallback()

deleteFilter()

filterNameChanged(oldValue, newValue)

loadAllSavedFilters()

loadFilterData(filterKey)

saveFilter()