registerFilterHandler

The registerFilterHandler method is called to register a filter handler to the UI framework. The method creates a custom common filter, such as a date time filter or a boundary filter. It responds with an auto refresh in this custom filter.

registerFilterHandler Syntax

/**
 * Register a filter handler, so that the filter can be triggered in Library.publishRefreshRequest
 * @param propertyName: the property 
 * @param handlerId: ID of the filter widget
 * for example, for BoundaryFilter, Library.registerFilterHandler("boundary", this.id)
 */
registerFilterHandler: function(propertyName, handlerId){

Custom Filter Syntax

The custom filter needs to implement theapplyFitler method.
applyFilter: function(message){
	message["boundary"] = this.boundary;
}