Skip to content

Commit

Permalink
add a couple of helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Nov 23, 2023
1 parent 20630f5 commit e6e9587
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -2455,6 +2455,20 @@ class Tags {
return this._holderElement;
}

clear() {
this.hideSuggestions();
this.reset();
}

/**
* Update data
* @param {Array<Suggestion|SuggestionGroup>|Object} src An array of items or a value:label object
*/
updateData(src) {
this.setData(src, false);
this.reset();
}

/**
* @param {string} value
* @param {Boolean} value
Expand Down

0 comments on commit e6e9587

Please sign in to comment.