You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On page load, we create a new TomSelect instance with new TomSelect('#select-value'). The user's operator selection determines if the input can accept one or multiple values.
I have the logic to switch between single or multiple on the value select input like this:
if(operatorElement.value==="in"||operatorElement.value==="not_in"){valueElement.multiple="true"}else{valueElement.multiple=undefined}consttomSelect=valueElement.tomselect// how can we refresh or re-initialize the TomSelect instance to reflect base on the updated select input?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
On page load, we create a new TomSelect instance with
new TomSelect('#select-value')
. The user's operator selection determines if the input can accept one or multiple values.I have the logic to switch between single or multiple on the value select input like this:
Beta Was this translation helpful? Give feedback.
All reactions