diff --git a/docs/examples.html b/docs/examples.html index aaad5d93..692d7144 100644 --- a/docs/examples.html +++ b/docs/examples.html @@ -464,7 +464,22 @@ $.fn.select2.amd.require(["select2/core", "select2/utils"], function (Select2, U cache: true }, templateResult: function (repo) { - return repo.full_name; + var markup = '
' + + '
' + + '
' + + '
' + + '
' + repo.full_name + '
' + + '
' + repo.forks_count + '
' + + '
' + repo.stargazers_count + '
' + + '
'; + + if (repo.description) { + markup += '
' + repo.description + '
'; + } + + markup += '
'; + + return markup; }, templateSelection: function (repo) { return repo.full_name;