Skip to content

Commit

Permalink
Add support for custom container Class
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudio Baumgartner committed Jul 31, 2019
1 parent 975184a commit 186c868
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Tribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class Tribute {
values = null,
iframe = null,
selectClass = 'highlight',
containerClass = null,
trigger = '@',
autocompleteMode = false,
selectTemplate = null,
Expand All @@ -28,6 +29,7 @@ class Tribute {
}) {
this.autocompleteMode = autocompleteMode
this.menuSelected = 0
this.containerClass = containerClass
this.current = {}
this.inputEvent = false
this.isActive = false
Expand Down Expand Up @@ -190,7 +192,7 @@ class Tribute {
let wrapper = this.range.getDocument().createElement('div'),
ul = this.range.getDocument().createElement('ul')

wrapper.className = 'tribute-container'
wrapper.className = this.containerClass || 'tribute-container'
wrapper.appendChild(ul)

if (this.menuContainer) {
Expand Down

0 comments on commit 186c868

Please sign in to comment.