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
{{ message }}
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.
Hi,
I'm initializing all the selects in my page that contains a specific data attribute (e.g., data-context="selectr") on page load. However, I'm not storing the instances in variables, since there are several selects on that page. So, I need to update/enable/disable some selects and I didn't find a way to get the instance attached to the select component. By doing Selectr('#foo') I get an error and creating a new instance with new Selectr('#foo') will generate another selectr.
In Select2, for instance, if we call $el.select2('#foo') we will get the instance attached to that select, but I didn't find anything like this in selectr.
Is there a way to get the selectr instance attached to a select, or is this a bug? Or is it by design?
The text was updated successfully, but these errors were encountered:
Hi,
I'm initializing all the selects in my page that contains a specific data attribute (e.g.,
data-context="selectr"
) on page load. However, I'm not storing the instances in variables, since there are several selects on that page. So, I need to update/enable/disable some selects and I didn't find a way to get the instance attached to the select component. By doingSelectr('#foo')
I get an error and creating a new instance withnew Selectr('#foo')
will generate another selectr.In Select2, for instance, if we call
$el.select2('#foo')
we will get the instance attached to that select, but I didn't find anything like this in selectr.Is there a way to get the selectr instance attached to a select, or is this a bug? Or is it by design?
The text was updated successfully, but these errors were encountered: