Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data-icon / data-iconurl refresh #157

Closed
smithlai opened this issue Apr 23, 2013 · 3 comments
Closed

data-icon / data-iconurl refresh #157

smithlai opened this issue Apr 23, 2013 · 3 comments
Assignees
Labels

Comments

@smithlai
Copy link

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?

@ghost ghost assigned gfranko Apr 23, 2013
@gfranko
Copy link
Owner

gfranko commented Apr 24, 2013

This is a bug that will be fixed in the next release, which will hopefully be out tonight. I will keep you posted. Thank you for reporting this!

@gfranko
Copy link
Owner

gfranko commented Apr 27, 2013

This bug has been fixed in the latest release!

@gfranko gfranko closed this as completed Apr 27, 2013
@smithlai
Copy link
Author

I just tried it. It works perfectly! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants