Bug Tracker

Changeset 4452

Show
Ignore:
Timestamp:
01/14/08 22:05:50 (11 months ago)
Author:
joern.zaefferer
Message:

fix for docs (#2138)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/autocomplete/jquery.autocomplete.js

    r4213 r4452  
    6161 * @option Number cacheLength The number of backend query results to store in cache. If set to 1 (the current result), no caching will happen. Do not set below 1. Default: 10 
    6262 * @option Boolean matchSubset Whether or not the autocompleter can use a cache for more specific queries. This means that all matches of "foot" are a subset of all matches for "foo". Usually this is true, and using this options decreases server load and increases performance. Only useful with cacheLength settings bigger than one, like 10. Default: true 
    63  * @option Boolean matchCase Whether or not the comparison is case sensitive. Only important only if you use caching. Default: false 
    64  * @option Boolean matchContains Whether or not the comparison looks inside (i.e. does "ba" match "foo bar") the search results. Only important if you use caching. Don't mix with autofill. Default: false 
     63 * @option Boolean matchCase Whether or not the comparison is case sensitive. Important only if you use caching. Default: false 
     64 * @option Boolean matchContains Whether or not the comparison looks inside (i.e. does "ba" match "foo bar") the search results. Important only if you use caching. Don't mix with autofill. Default: false 
    6565 * @option Booolean mustMatch If set to true, the autocompleter will only allow results that are presented by the backend. Note that illegal values result in an empty input box. Default: false 
    6666 * @option Object extraParams Extra parameters for the backend. If you were to specify { bar:4 }, the autocompleter would call my_autocomplete_backend.php?q=foo&bar=4 (assuming the input box contains "foo"). The param can be a function that is called to calculate the param before each request. Default: none 
    6767 * @option Boolean selectFirst If this is set to true, the first autocomplete value will be automatically selected on tab/return, even if it has not been handpicked by keyboard or mouse action. If there is a handpicked (highlighted) result, that result will take precedence. Default: true 
    6868 * @option Function formatItem Provides advanced markup for an item. For each row of results, this function will be called. The returned value will be displayed inside an LI element in the results list. Autocompleter will provide 4 parameters: the results row, the position of the row in the list of results (starting at 1), the number of items in the list of results and the search term. Default: none, assumes that a single row contains a single value. 
    69  * @option Function formatResult Similar to formatResult, but provides the formatting for the value to be put into the input field. Again three arguments: Data, position (starting with one) and total number of data. Default: none, assumes either plain data to use as result or uses the same value as provided by formatItem. 
     69 * @option Function formatResult Similar to formatItem, but provides the formatting for the value to be put into the input field. Again three arguments: Data, position (starting with one) and total number of data. Default: none, assumes either plain data to use as result or uses the same value as provided by formatItem. 
    7070 * @option Boolean multiple Whether to allow more than one autocomplted-value to enter. Default: false 
    7171 * @option String multipleSeparator Seperator to put between values when using multiple option. Default: ", " 
    7272 * @option Number width Specify a custom width for the select box. Default: width of the input element 
    73  * @option Boolean autoFill Fill the textinput while still selecting a value, replacing the value if more is type or something else is selected. Default: false 
    74  * @option Number max Limit the number of items in the select box. Is also send as a "limit" parameter with a remote request. Default: 10 
     73 * @option Boolean autoFill Fill the textinput while still selecting a value, replacing the value if more is typed or something else is selected. Default: false 
     74 * @option Number max Limit the number of items in the select box. Is also sent as a "limit" parameter with a remote request. Default: 10 
    7575 * @option Boolean|Function highlight Whether and how to highlight matches in the select box. Set to false to disable. Set to a function to customize. The function gets the value as the first argument and the search term as the second and must return the formatted value. Default: Wraps the search term in a <strong> element  
    76  * @option Boolean scroll Whether to scroll when more results then configured via scrollHeight are available. Default: true  
     76 * @option Boolean scroll Whether to scroll when more results than configured via scrollHeight are available. Default: true  
    7777 * @option Number scrollHeight height of scrolled autocomplete control in pixels 
    7878 * @option String attachTo The element to attach the autocomplete list to. Useful if used inside a modal window like Thickbox. Default: body -MM