Skip to content

Commit

Permalink
Allow setting filter regexp for item creation
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk authored Feb 23, 2024
1 parent 9b6d43e commit 6b60665
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 ('pattern' in el.dataset) {
options.createFilter = el.dataset.pattern;
}

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

0 comments on commit 6b60665

Please sign in to comment.