فهرست منبع

Merge pull request #4745 from FROGGS/patch-1

Show same options in example as used in demo
James Pic 8 سال پیش
والد
کامیت
8dc02bcfb8
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      docs/_includes/examples/themes-templating-responsive-design.html

+ 2 - 1
docs/_includes/examples/themes-templating-responsive-design.html

@@ -69,7 +69,8 @@ function formatState (state) {
 };
 
 $(".js-example-templating").select2({
-  templateResult: formatState
+  templateResult: formatState,
+  templateSelection: formatState
 });
 {% endhighlight %}