From 4ee9f7b5e2e6dbb220be9f507633cae48a222bec Mon Sep 17 00:00:00 2001 From: Tobias Leich Date: Wed, 11 Jan 2017 17:18:16 +0100 Subject: [PATCH] Show same options in example as used in demo The templateSelection option was used in the demo, but was not shown in the example code. This commit fixes it, so that copy&pasting works as expected. --- .../examples/themes-templating-responsive-design.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/_includes/examples/themes-templating-responsive-design.html b/docs/_includes/examples/themes-templating-responsive-design.html index 6c345095..08c686e8 100644 --- a/docs/_includes/examples/themes-templating-responsive-design.html +++ b/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 %}