goog.Disposable | |
goog.ui.ac.RemoteArrayMatcher | goog.Disposable |
goog.ui.ac.RichRemoteArrayMatcher | goog.ui.ac.RemoteArrayMatcher |
url
: string
The Uri which generates the auto complete matches. The
search term is passed to the server as the 'token' query param.
|
opt_noSimilar
: boolean=
If true, request that the server does not do
similarity matches for the input token against the dictionary.
The value is sent to the server as the 'use_similar' query param which is
either "1" (opt_noSimilar==false) or "0" (opt_noSimilar==true).
|
![]()
Retrieve a set of matching rows from the server via ajax and convert them
into rich rows.
Arguments:
|
code » | ||||
![]()
Set the filter that is called before the array matches are returned.
Arguments:
|
code » |
Builds a complete GET-style URL, given the base URI and autocomplete related
parameter values.
Override this to build any customized lookup URLs.Can be used to change request method and any post content as well.
Arguments:
Returns: ?string
The complete url. Return null if no request should be sent.
|
code » | ||||||
![]()
No description.
|
code » | ||||||
Parses and retrieves the array of suggestions from XHR response.
Override this if the response is not a simple JSON array.
|
code » | ||||||
![]()
Retrieve a set of matching rows from the server via ajax.
Arguments:
|
code » | ||||||
![]()
Set the post data.
Arguments:
|
code » | ||||||
![]()
Set the HTTP headers.
Arguments:
|
code » | ||||||
![]()
Set the send method ("GET", "POST").
Arguments:
|
code » | ||||||
![]()
Set the timeout interval.
Arguments:
|
code » | ||||||
Returns whether the suggestions should be updated?
Override this to prevent updates eg - when token is empty.
Arguments:
Returns: boolean
Whether new matches be requested.
|
code » | ||||||
![]()
Handles the XHR response.
Arguments:
|
code » |
![]()
Invokes a callback function when this object is disposed. Callbacks are
invoked in the order in which they were added.
Arguments:
|
code » | |||
![]()
Disposes of the object. If the object hasn't already been disposed of, calls
#disposeInternal . Classes that extend goog.Disposable should
override #disposeInternal in order to delete references to COM
objects, DOM nodes, and other disposable objects. Reentrant.
Returns: void
Nothing.
|
code » | |||
![]()
Deletes or nulls out any references to COM objects, DOM nodes, or other
disposable objects. Classes that extend
goog.Disposable should
override this method.
Not reentrant. To avoid calling it twice, it must only be called from the
subclass' disposeInternal method. Everywhere else the public
dispose method must be used.
For example:
mypackage.MyClass = function() { mypackage.MyClass.base(this, 'constructor'); // Constructor logic specific to MyClass. ... }; goog.inherits(mypackage.MyClass, goog.Disposable); mypackage.MyClass.prototype.disposeInternal = function() { // Dispose logic specific to MyClass. ... // Call superclass's disposeInternal at the end of the subclass's, like // in C++, to avoid hard-to-catch issues. mypackage.MyClass.base(this, 'disposeInternal'); }; |
code » | |||
Use
#isDisposed instead.
No description.
Returns: boolean
Whether the object has been disposed of.
|
code » | |||
No description.
Returns: boolean
Whether the object has been disposed of.
|
code » | |||
![]()
Associates a disposable object with this object so that they will be disposed
together.
Arguments:
|
code » |
![]()
No description.
|
Code » | |
![]()
Data to submit during a POST.
|
Code » | |
![]()
Headers to send with every HTTP request.
|
Code » | |
![]()
Key to the listener on XHR. Used to clear previous listeners.
|
Code » | |
![]()
The HTTP send method (GET, POST) to use when making the ajax call.
|
Code » | |
![]()
The base URL for the ajax call. The token and max_matches are added as
query params.
|
Code » | |
![]()
Whether similar matches should be found as well. This is sent as a hint
to the server only.
|
Code » | |
The XhrIo object used for making remote requests. When a new request
is made, the current one is aborted and the new one sent.
|
Code » |
![]()
No description.
|
Code » |