Use Dojo to display Table Data, Filter Function (2) – Filter Plugin

This article briefly introduces the use of Dojo’s filter plug-in to realize the filtering function of table data.
Unlike the previous article, using Dojo to display tabular data with a filter function. The difference is that grid.filter() is just a filter function, while the filter plug-in is a complete filtering solution. You only need to configure the structure object of the EnhancedGrid object to get the complete filtering function.

Add filter plug-in steps to dataGrid object:

1. Upgrade dataGrid object to EnhancedGrid object

2. Add filter to EnhancedGrid object plugin

3. Configure filter parameters in EnhancedGrid.structure.

The practical filter parameters are:

filterable

autoComplete

< p>datatype

disabledConditions

For more detailed information about the filter plug-in, please refer to the Dojo official website

< br>

The executable code is as follows:

      

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5797 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.