Labs/Ubiquity/Writing A Search Command: Difference between revisions

Line 27: Line 27:


=== parser ===
=== parser ===
The parser makes it easy for you as a developer to provide an interactive preview with search results, consistent with other Ubiquity search commands.
Via a number of options, you can tell makeSearchCommand how to parse the data returned by the search provider.
'''NB:''' all selectors used in the following sections are '''''NOT''''' CSS selectors, but [http://docs.jquery.com/Selectors jQuery selectors]. They are very similar, but some features you might be used to from CSS are missing, whilst others still are added.


==== container ====
==== container ====
A selector that matches each result, thus returning a list of result containers.


==== title ====
==== title ====
Line 43: Line 49:


==== type ====
==== type ====


== Examples ==
== Examples ==
47

edits