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

Add list-group-item dynamically #1

Closed
icyrainz opened this issue Aug 14, 2014 · 2 comments
Closed

Add list-group-item dynamically #1

icyrainz opened this issue Aug 14, 2014 · 2 comments

Comments

@icyrainz
Copy link

Is there any chance that I could add a list-group-item dynamically later and still has the click-to-active feature of listgroup.js ?
I have a bootstrap modal that loads data dynamically and put into list-group-item but it seems do not have this click-to-active feature after adding the listgroup.js

@rickardn
Copy link
Owner

Sure. Adding new list-group-item's to an activated list-group should work fine. Maybe the list-group hasn't been activated? Just call $('#new-list-group').listgroup() after you've added it to the page (or loaded the modal).

@icyrainz
Copy link
Author

Thanks !

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

No branches or pull requests

2 participants