-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
How override default "text" key to custom key? #4086
Comments
The docs are pretty terrible about recommending how to correct this issue. The preferred way is to fix change the property names at the data source, so they match the This is covered briefly in the 4.0.0 announcement: I'm going to mark this as a documentation issue. |
May be create options for this keys? $.fn.select2.defaults.set("pk-prop", "id");
$.fn.select2.defaults.set("text-prop", "text"); It allows you to work with own format objects wihtout transformation object. |
The text was updated successfully, but these errors were encountered: