-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Load from JSON #1151
Comments
An updated version which allows you to define the value and label as attributes
|
Closed
another option to load/reload data from a json item list
|
Please 👍 and follow #899. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I need to load my lists from JSON files so I have made an extension to your script. Rather than modifying it I chose to extend it in order to keep it simple to receive your updates. Everyone are welcome to use my extension, but I hope it will be implemented in the codebase.
It works like this:
Add an attribute to your select: data-url="link-to-json", make sure the select has the class selectpicker.
The json file must be formatted like this:
And so on. It will take name as display value and id as option value.
The text was updated successfully, but these errors were encountered: