diff --git a/docs/gitbook/Api/Props.md b/docs/gitbook/Api/Props.md index 740d04d..9285251 100644 --- a/docs/gitbook/Api/Props.md +++ b/docs/gitbook/Api/Props.md @@ -137,14 +137,16 @@ getOptionLabel: { }, /** - * Callback to filter the search result the label text. - * @type {Function} - * @param {Object || String} option - * @param {String} label - * @param {String} search - * @return {Boolean} - */ -filterFunction: { +* Callback to determine if the provided option should +* match the current search text. Used to determine +* if the option should be displayed. +* @type {Function} +* @param {Object || String} option +* @param {String} label +* @param {String} search +* @return {Boolean} +*/ +filterBy: { type: Function, default(option, label, search) { return (label || '').toLowerCase().indexOf(search.toLowerCase()) > -1