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:
parent
04c433d709
commit
4ee9f7b5e2
@ -69,7 +69,8 @@ function formatState (state) {
|
||||
};
|
||||
|
||||
$(".js-example-templating").select2({
|
||||
templateResult: formatState
|
||||
templateResult: formatState,
|
||||
templateSelection: formatState
|
||||
});
|
||||
{% endhighlight %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user