1
0
mirror of synced 2025-02-09 16:49:24 +03:00

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.
This commit is contained in:
Tobias Leich 2017-01-11 17:18:16 +01:00 committed by GitHub
parent 04c433d709
commit 4ee9f7b5e2

View File

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