searchfield (object)
A map of options for the searchfield.
Possible values: an object, true
or false
.
Code example:
$("#my-menu").mmenu({ searchfield : { add : false, search : true, placeholder : "Search", noResults : "No results found.", showLinksOnly : true } });
searchfield.add (boolean)
Whether or not to automatically prepend a searchfield to the menu.
Default value: false
.
searchfield.search (boolean)
Whether or not to automatically search when typing.
Default value: true
.
searchfield.placeholder (string)
The placeholdertext in the searchfield.
Default value: "Search"
.
searchfield.noResults (string)
The text to show when no results are found. If false
no message will be shown.
Default value: "No results found."
.
searchfield.showLinksOnly (boolean)
Whether or not to only show links (A
elements) in the searchresults. If false
, also SPAN
elements will be shown.
Default value: true
.