-
-
Notifications
You must be signed in to change notification settings - Fork 35
Search By Name
SteveRidout edited this page Sep 5, 2012
·
4 revisions
A very basic example of it's use is the bare-bones example Search by Name page.
See the relevant files in the reference implementation for a more complete example:
Identical options to Search By Example
var searchByName = new CSLEDIT_SearchByName($('#mainContainer'), {
// If this isn't present - the "Edit" buttons won't appear
editStyle_func : function (styleId) {
// do something with the styleId
},
// If this isn't present, the "View Code" buttons won't appear
viewCode_func : function (styleId) {
// do something with the styleId
},
// If this isn't present, the "Install" buttons won't appear
installStyle_func : function (styleId) {
// do something with the styleId
}
});