Type | Names | Description | Default | Access |
---|---|---|---|---|
string | ajaxtype | Determines the ajax type made to the server. Defaut is GET. Can be a POST | GET | public |
boolean | cache | When set to true enables client side caching of the results. This prevent multiple queries to the database. Please use with care. | false | public |
string | height | Determines the height of the autocomplete elemnt. Work only if $scroll option is set to true. | 110px | public |
boolean | loadAll | Determines if the data should be loaded at once from the SQL siurce. Also when set to true only one requrest is done and the data then is stored at client side. No more requests to the server | false | public | booean | scroll | Determines if the content in autocomplete should have a scroll. Use this option with the height option. If this option is not set the content will have height equal of the responce rows. | true | public |
string | searchType | Set the search type for the LIKE SQL operator. The possible values are: startWith - set LIKE value%; contain - set LIKE %value%; endWith - set LIKE %value. If the value does not match any of the above setting the SQL command is interpreted as it is without adding any additional strings. API Tags: |
startWith | public |
string | fontsize | Set the font size of the widget when it is created. Can be set in any valid measure | 11px | public |
boolean | strictcheck | Valid only if target is set in renderAutocomplete. If set to false the input is not cleared when the value is not found in the autcomplete list | true | public |
string | SelectCommand | Defines the select command for obtaining the data from the database. Usually this type of command contain the SQL LIKE operator. If the command contain where clause we suppose that this command contain LIKE operator. The serched fields should comtain ? plece holder in order to search om the term element send from the autocompleter. Example: SELECT field1, field2 FROM table WHERE field1 LIKE ? OR field2 LIKE ? As seen you should place a placeholder on the serched fields. The class add the term element automatically to the query. For additional information see the documantation |
empty string | public |