Skip to content

Commit

Permalink
Add documentation about tribute autocomplete.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Humphreys committed Feb 27, 2019
1 parent 663313d commit 1661350
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ Collection object shown with defaults:
// when the spacebar is hit, select the current match
spaceSelectsMatch: false,

// turn tribute into an autocomplete
autocompleteMode: false,

// Customize the elements used to wrap matched strings within the results list
// defaults to <span></span> if undefined
searchOpts: {
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tribute",
"description": "Native ES6 @mentions",
"version": "3.5.3",
"version": "3.6.0",
"main": [
"dist/tribute.js",
"dist/tribute.css"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tributejs",
"version": "3.5.3",
"version": "3.6.0",
"description": "Native ES6 @mentions",
"main": "dist/tribute.js",
"types": "tributejs.d.ts",
Expand Down
5 changes: 4 additions & 1 deletion tributejs.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for TributeJS v3.5.3
// Type definitions for TributeJS v3.6.0
// Project: https://github.com/zurb/tribute
// Definitions by: Jordan Humphreys <https://github.com/mrsweaters/>

Expand Down Expand Up @@ -53,6 +53,9 @@ export type TributeCollection<T extends {}> = {

//specify whether the menu should be positioned
positionMenu?: boolean

//specify whether to put Tribute in autocomplete mode
autocompleteMode?: boolean
}

export type TributeOptions<T> = TributeCollection<T> | {
Expand Down

0 comments on commit 1661350

Please sign in to comment.