Skip to content

Commit

Permalink
Add menuItemLimit to README and types (#447)
Browse files Browse the repository at this point in the history
* Add menuItemLimit to README

* Add menuItemLimit to tributejs.d.ts
  • Loading branch information
jseminck authored Jun 6, 2020
1 parent 99e4a3d commit 2a21d85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ Collection object shown with defaults:
skip: false // true will skip local search, useful if doing server-side search
},

// Limits the number of items in the menu
menuItemLimit: 25,

// specify the minimum number of characters that must be typed before menu appears
menuShowMinLength: 0
}
Expand Down
3 changes: 3 additions & 0 deletions tributejs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ export type TributeCollection<T extends {}> = {
// Customize the elements used to wrap matched strings within the results list
searchOpts?: TributeSearchOpts;

// Limits the number of items in the menu
menuItemLimit?: number;

// require X number of characters to be entered before menu shows
menuShowMinLength?: number;
};
Expand Down

0 comments on commit 2a21d85

Please sign in to comment.