vtexCustomAutoComplete
This function listen the event of the input and handles the auto complete resquest at any vtex based e-commerce.
Parameters
options
object an object is required by parameter with the followings keys and content:options.shelfId
string the hash id of the shelf that should be renderedoptions.appendTo
jQuery a jQuery object of the container where the results will be placedoptions.notFound
function a callback function that returns a valid html text or an jQuery object, this result will be appended into the container when no results returns from the searchoptions.limit
number the number of the itens that should be placed at once
Getting started
- First find the
shelfId
at vtexadmin/a
->template de prateleiras
Than call the vtexCustomAutoComplete on your input by following the example bellow
Examples
;