From c204e32588adf4e9c7cef9304343b07f9c5f8e6c Mon Sep 17 00:00:00 2001 From: Jordan Humphreys Date: Tue, 10 Mar 2020 09:37:06 -0700 Subject: [PATCH] Document hiding menu with no match. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index e5c03f5d..0dc77bd8 100644 --- a/README.md +++ b/README.md @@ -441,6 +441,16 @@ function remoteSearch(text, cb) { } ``` +### Hide menu when no match is returned + +If you want the menu to not show when no match is found, you can set your `noMatchTemplate` config to the following: + +```js +noMatchTemplate: function () { + return ''; +} +``` + ### Detaching Tribute instances When you want to remove Tribute from an element you can call `detach`.