Ashera provides framework to create predefined event handler in cross platform way.
One of the common requirement in displaying data is to allow user to filter data. RecylerView and ListView in Ashera is extended to add filter method when in we can filter data. By default, filter filters data by matching all data with startsWith the query provided and is case insensitive.
Say for example we need filter which filters data by matching all data with endsWith the query provided and is case insensitive. This can be achieved by creating a custom filter.
The following are the steps to create new filter:
cordova plugin add Custom
.com.ashera.converter.FilterFactory.register(LowerCaseSuffixFilter.class.getName(), new LowerCaseSuffixFilter());
filterId="com.ashera.custom.LowerCaseSuffixFilter"
This example shows how to use custom filters.