Skip to content

Compatibility with selectize.js #77

Answered by oyejorge
bytestream asked this question in Q&A
Discussion options

You must be logged in to vote

There are few things that selectize users might need to do when switching over. There's a list of breaking changes on https://tom-select.js.org/docs/selectize.js/ which is mainly the following:

  • .ts-* css class names instead of .selectize-* (customizable with scss & js)
  • scss instead of less
  • dataAttr defaults to null instead of "data-data"
  • options must be appended to optgroup within custom optgroup template

Is config fully compatible with selectize.js?

Except for the template.optgroup and the dataAttr changes, a selectize config should work fine with Tom Select.

If so, then I would plan to create a thin jQuery wrapper so that all existing usages of $().selectize() work without changes.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bytestream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants