Skip to content

Commit

Permalink
Allow setting delimiter through data attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk authored Feb 23, 2024
1 parent 0e63cfd commit 9b6d43e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ function initFormControls()
formName = el.form.dataset.formName + '-';
}

if ('delimiter' in el.dataset) {
options.delimiter = el.dataset.delimiter;
}

if ('noSearch' in el.dataset) {
options.controlInput = null;
options.plugins = [];
Expand Down

0 comments on commit 9b6d43e

Please sign in to comment.