Skip to content

Commit

Permalink
Document hiding menu with no match.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Humphreys committed Mar 10, 2020
1 parent afb5662 commit c204e32
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<span style:"visibility: hidden;"></span>';
}
```

### Detaching Tribute instances

When you want to remove Tribute from an element you can call `detach`.
Expand Down

0 comments on commit c204e32

Please sign in to comment.