This article is for a specific plugin. Please be sure to read the Introduction and Overview to jQuery Plugins
which provides an introduction to the plugins.
The TokenInput plugin is primarily consumed by the dnnComposeMessage jQuery plugin
to provide au autocomplete list of users and groups. However it can be reused to provide any autocomplete style of list and data. The tokeninput
website covers all the available options.
To reuse it in your own extensions it's recommend that you use the Client Resource Management API
to ensure only a single copy of the script is included and that it is minimized and compacted (if your install has chosen those options) e.g.
<dnn:DnnJsInclude ID="DnnJsInclude4" runat="server" FilePath="~/Resources/Shared/Components/Tokeninput/jquery.tokeninput.js" Priority="103" />
Whilst it's not mandatory, it is recommended to also include the css file that provides for a common look & feel.
<dnn:DnnCssInclude ID="DnnCssInclude3" runat="server" FilePath="~/Resources/Shared/Components/Tokeninput/Themes/token-input-facebook.css" />