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
This is really the most powerful selectbox I've ever seen.
But I encountered a problem now.
Can the icon of each option be changed dynamically?
For example:
Each is a vpn server , and the icon will be the current bandwidth.
At first I build menu with
$('#id_vpn_link').selectBoxIt();
After a ajax refresh data, I execute the following:
$('#id_vpn_link').find("option[value="+sn+"]").attr('data-iconurl',"img_warning.png");
$('#id_vpn_link').data("selectBox-selectBoxIt").refresh();
However, this do not work.
Is dynamic icon possible?
The text was updated successfully, but these errors were encountered:
This is really the most powerful selectbox I've ever seen.
But I encountered a problem now.
Can the icon of each option be changed dynamically?
For example:
Each is a vpn server , and the icon will be the current bandwidth.
At first I build menu with
$('#id_vpn_link').selectBoxIt();
After a ajax refresh data, I execute the following:
$('#id_vpn_link').find("option[value="+sn+"]").attr('data-iconurl',"img_warning.png");
$('#id_vpn_link').data("selectBox-selectBoxIt").refresh();
However, this do not work.
Is dynamic icon possible?
The text was updated successfully, but these errors were encountered: