Select2 not using my templateResults or templateSelection options

99封情书 提交于 2019-12-04 23:14:51

You are looking at the 4.0.0 documentation but are using 3.5.2. You can still access the 3.5.2 documentation.

Specifically, the templateSelection and templateResult options only exist in 4.0.0. They were called formatSelection and formatResult in 3.5.2.

In select2 3.5.2., it is "formatResult" (singular, not formatResults)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!