Documentation

AUI Select2

Summary

Select2 is a third party replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results. AUI provides a visual wrapper around Select2 to style it according to the Atlassian Design Guidelines (ADG).

Status

API status:experimental
Included in AUI core?Not in core You must explicitly require the web resource key.
Web resource key:com.atlassian.auiplugin:aui-select2
Experimental since:5.3

Examples

Code


<form class="aui">
    <select id="select2-example" multiple>
        <option value="CONF">Confluence</option>
        <option value="JIRA">JIRA</option>
        <option value="BAM">Bamboo</option>
        <option value="JAG">JIRA Agile</option>
        <option value="CAP">JIRA Capture</option>
        <option value="AUI">AUI</option>
    </select>
</form>

AJS.$("#select2-example").auiSelect2();
    

These docs only show the method to call the ADG-styled Select2. The options passed into the function are the same as the original Select2. You can see the full docs here.