1.Base initialization get selected text, clear selected, change selected, enabled/disabled

2.Select only mode readonly, close page bar, list height

3.Init selected item selected item in initialization, multiple sort column

4. Item content customize customize row render, close down arrow

5. Multiple selection mode multiple (tags form), multiple selected init

6. Max item selected limit

7.Events eSelect

8. Remote data source

Static pages can not show Ajax data load, please reference code usage

Need to receive parameters on server side

pageNumber
Current page number
pageSize
The number of records in page
searchTable
The data table being queried; this field can be specified according to specific needs, the default setting is 'tbl'
andOr
The parameters for plugin initialization are passed to the server. These parameters typically only have two values: "AND" or "OR". They are set and retrieved as needed
orderBy
The sort field, by default, sorts the data based on the field specified by searchField, with the default sort order being "ASC"
xxx
The autocomplete fuzzy search field is typically used to retrieve the field specified by the showField attribute. If the variable name used to receive the data on the server side differs from the returned field, this field can be used
For example: If the server returns the display field as 'name', and the field used to receive the fuzzy search query is 'userName', then you need to set searchField='userName' in the plugin to complete the matching
searchKey
In AJAX mode, the query field used to retrieve the initial selected item is automatically retrieved by default, using the field specified by keyField
searchValue
In AJAX mode, this field is used to retrieve the ID value of the initially selected item. When combined with the `searchKey` field, this field can be used in a server-side SQL query to output either "where searchKey = searchValue" or "where searchKey in (searchValue)"

The fields needed to initialize the selected value using AJAX
Parameters received by the server

  • searchKey Perform a full match on the ID field retrieved from the server
  • searchValue For the specific ID values ​​being queried, if there are multiple values, they will be separated by commas. The server will need to manually split them after receiving the data
  • searchTable The query table specifies that this field is not usually needed and is used as a spare

Fields needed to read paginated data using AJAX
Parameters received by the server

  • pageNumber Current page number
  • pageSize Number of records per page
  • searchTable The data table to query
  • xxx The field name specified by showField or searchField, used for the actual fuzzy search
  • andOr AND or OR conditions for the query can be passed as needed
  • orderBy The sorting field is usually taken from the searchField

INFO Based on this server-side processing code, you need to specify `searchField: "userName"` during plugin initialization. If not specified, the default field "name" will be passed, causing the server to not receive the fuzzy search results

9. Dynamic change data source not for server side mode

10. Data linkage

Server side mode data linkage

  • The SelectPage data source difference between remote data and static json data is where to filter data
  • Initialize city selector with empty list
  • After selecting the province to clear selected item in city selector

Data linkage with other plugins SelectMenu、bDialog

SelectMenu

Simple, easily and diversity menu solution

bDialog

A multi-layer nested, highly customizable powerful dialog plugin

  • Modal
  • Alert
  • Mask
  • Toast