{{!--<div class="site-example--content slds-m-bottom--xx-large slds-scrollable--x slds-tabs__content slds-show" role="tabpanel">
    <div class="slds-p-horizontal--medium">--}}
        <h4 class="site-text-heading--medium">Markup</h4>
{{#aljs-pre-container type="html"}}
<div class="slds-form-element slds-lookup" data-select="single" data-scope="single">
    <label class="slds-form-element__label" for="lookup-01">Objects</label>
    <div class="slds-form-element__control slds-input-has-icon slds-input-has-icon--right">
        <svg aria-hidden="true" class="slds-input__icon slds-icon-text-default">
            <use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#search"></use>
        </svg>
        <input id="lookup-01" class="slds-lookup__search-input slds-input" type="text" aria-autocomplete="list" role="combobox" aria-expanded="false" aria-activedescendant="" placeholder="Search Objects" />
    </div>
</div>
<div class="slds-form-element slds-lookup" data-select="single" data-scope="single">
    <label class="slds-form-element__label" for="lookup-02">Things</label>
    <div class="slds-form-element__control slds-input-has-icon slds-input-has-icon--right">
        <svg aria-hidden="true" class="slds-input__icon slds-icon-text-default">
            <use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#search"></use>
        </svg>
        <input id="lookup-02" class="slds-lookup__search-input slds-input" type="text" aria-autocomplete="list" role="combobox" aria-expanded="false" aria-activedescendant="" placeholder="Search Things" />
    </div>
</div>
{{!--<div class="slds-lookup" data-select="multi" data-scope="single">
    <div class="slds-form-element">
        <label class="slds-form-element__label" for="lookup-3">Entities</label>
        <div class="slds-form-element__control slds-input-has-icon slds-input-has-icon--right">
            <svg aria-hidden="true" class="slds-input__icon">
                <use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#search"></use>
            </svg>
            <input id="lookup-3" class="slds-input" type="text" aria-autocomplete="list" role="combobox"/>
        </div>
    </div>	
</div>--}}
{{/aljs-pre-container}}
        {{!--<p class="slds-m-top--medium">This table gives you a quick overview of SLDS-specific markup being read by the plugin.</p>
        <div class="slds-scrollable--x">
            <table class="slds-table slds-table--bordered slds-max-medium-table--stacked slds-no-row-hover slds-m-top--medium">
                <thead>
                    <tr class="site-text-heading--label">
                        <th scope="col">ALJS Markup</th>
                        <th scope="col">Outcome</th>
                        <th scope="col">Required</th>
                        <th scope="col">Applied to</th>
                        <th scope="col">Comments</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <th scope="row"><code>data-select="</code><em>single/multi</em><code>"</code></th>
                        <td data-label="Outcome">Sets the lookup to allow a single selection or multiple selections</td>
                        <td data-label="Required" class="slds-cell-shrink">
                            <svg aria-hidden="true" class="slds-icon slds-icon--x-small slds-icon-text-default">
                                <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="assets/icons/utility-sprite/svg/symbols.svg#check"></use>
                            </svg><span class="slds-assistive-text">Required</span></td>
                        <td data-label="Applied to" class="slds-cell-shrink"><code>.slds-lookup</code></td>
                        <td data-label="Comments"></td>
                    </tr>
                    <tr>
                        <th scope="row"><code>data-scope="</code><em>single/multi</em><code>"</code></th>
                        <td data-label="Outcome">Sets the lookup scope to a single object or multiple objects</td>
                        <td data-label="Required" class="slds-cell-shrink">
                            <svg aria-hidden="true" class="slds-icon slds-icon--x-small slds-icon-text-default">
                                <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="assets/icons/utility-sprite/svg/symbols.svg#check"></use>
                            </svg><span class="slds-assistive-text">Required</span></td>
                        <td data-label="Applied to" class="slds-cell-shrink"><code>.slds-lookup</code></td>
                        <td data-label="Comments"><strong>Multi Scope</strong> is currently in development</td>
                    </tr>
                </tbody>
            </table>
        </div>--}}
        <h4 class="site-text-heading--medium">Initialize with Options</h4>
{{#aljs-pre-container type="js"}}
$(document).ready(function() {
    $('#lookup-01').lookup({
        items: [
            {
                id: 'result-1',
                label: 'Result 1',
                metaLabel: 'Optional meta description'
            },
            {
                id: 'result-2',
                label: 'Result 2',
                metaLabel: 'Optional meta description'
            },
            {
                id: 'result-3',
                label: 'Result 3',
                metaLabel: 'Optional meta description'
            },
            {
                id: 'result-4',
                label: 'Result 4',
                metaLabel: 'Optional meta description'
            },
            showSearch: true,
            recentLabel: ''
        ],
    });

    var resultsForSecondLookup = [
        {
            id: 'ajax-result-1',
            label: 'AJAX Result 1',
            metaLabel: 'Optional meta description'
        },
        {
            id: 'ajax-result-2',
            label: 'AJAX Result 2',
            metaLabel: 'Optional meta description'
        },
        {
            id: 'ajax-result-3',
            label: 'AJAX Result 3',
            metaLabel: 'Optional meta description'
        },
        {
            id: 'ajax-result-4',
            label: 'AJAX Result 4',
            metaLabel: 'Optional meta description'
        }
    ];

    $('#lookup-02').lookup({
        items: resultsForSecondLookup,
        objectPluralLabel: 'Things',
        objectLabel: 'Thing',
        useImgTag: false,
        objectIconUrl: '/assets/icons/standard-sprite/svg/symbols.svg#account',
        objectIconClass: 'slds-icon-standard-account',
        initialSelection: { id: 'ajax-result-1', label: 'AJAX Result 1' },
        onClickNew: function() {
            console.log('redirect or run something');
        }
    });{{!--
    
    $('#lookup-03').lookup({
        objectPluralLabel: 'Entities',
        objectLabel: 'Entity',
        objectIconUrl: '/assets/icons/standard-sprite/svg/symbols.svg#account',
        objectIconClass: 'slds-icon-standard-account',
        emptySearchTermQuery: function(callback) {
            callback(results);
        },
        filledSearchTermQuery: function(searchTerm, callback) {
            callback(results.filter(function(result) {
                return result.label.match(searchTerm) !== null;
            }));
        },
        clickAddFunction: function() {
            console.log('redirect or run something');
        }
    });--}}
});
{{/aljs-pre-container}}
        <p class="slds-m-top--medium">This table details the options available for the jQuery function.</p>
        <div class="slds-scrollable--x">
            <table class="slds-table slds-table--bordered slds-max-medium-table--stacked slds-no-row-hover slds-m-top--medium">
                <thead>
                    <tr class="site-text-heading--label">
                        <th scope="col">Option</th>
                        <th scope="col">Behavior</th>
                        <th scope="col">Values</th>
                        <th scope="col">Default value</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <th scope="row"><code>items</code></th>
                        <td data-label="Behavior">Populates the list of lookup items; used as a static list (see <code>emptySearchTermQuery</code> and <code>filledSearchTermQuery</code> for dynamic results)</td>
                        <td data-label="Values">An array of objects with <code>id</code> (required unique string), <code>label</code> (required string), and <code>metaLabel</code> (optional string) properties</td>
                        <td data-label="Default value" class="slds-cell-shrink"><code>[]</code></td>
                    </tr>
                    <tr>
                        <th scope="row"><code>objectLabel</code></th>
                        <td data-label="Behavior">Sets the singular label for the searchable object</td>
                        <td data-label="Values">Any string</td>
                        <td data-label="Default value" class="slds-cell-shrink"><code>'Object'</code></td>
                    </tr>
                    <tr>
                        <th scope="row"><code>objectPluralLabel</code></th>
                        <td data-label="Behavior">Sets the plural label for the searchable object</td>
                        <td data-label="Values">Any string</td>
                        <td data-label="Default value" class="slds-cell-shrink"><code>'Objects'</code></td>
                    </tr>
                    <tr>
                        <th scope="row"><code>recentLabel</code></th>
                        <td data-label="Behavior">Sets the label for the recent items header that appears on the dropdown when a search hasn't been performed</td>
                        <td data-label="Values">Any string; use <code>''</code> (empty string) to exclude the header</td>
                        <td data-label="Default value" class="slds-cell-shrink"><code>'Recent Objects'</code></td>
                    </tr>
                    <tr>
                        <th scope="row"><code>useImgTag</code></th>
                        <td data-label="Behavior">Adjusts the generated markup accept images with transparent backgrounds for object icons</td>
                        <td data-label="Values"><code>true</code>, <code>false</code></td>
                        <td data-label="Default value" class="slds-cell-shrink"><code>false</code></td>
                    </tr>
                    <tr>
                        <th scope="row"><code>objectIconUrl</code></th>
                        <td data-label="Behavior">Sets the icon of the searchable object</td>
                        <td data-label="Values">Any string representing an icon URL; use <code>''</code> (empty string) to exclude icons</td>
                        <td data-label="Default value" class="slds-cell-shrink"><code>'/assets/icons/standard-sprite/svg/symbols.svg#account'</code></td>
                    </tr>
                    <tr>
                        <th scope="row"><code>objectIconClass</code></th>
                        <td data-label="Behavior">Sets the icon background color of the searchable object</td>
                        <td data-label="Values">Any string representing an icon class (see <a href="https://www.lightningdesignsystem.com/components/icons" target="_blank">https://www.lightningdesignsystem.com/components/icons</a> for more details)</td>
                        <td data-label="Default value" class="slds-cell-shrink"><code>'slds-icon-standard-account'</code></td>
                    </tr>
                    <tr>
                        <th scope="row"><code>emptySearchTermQuery</code></th>
                        <td data-label="Behavior">A function that runs <code>callback</code>, which passes an array of results, when an empty search (initial focus) is performed; only used when <code>items</code> is empty</td>
                        <td data-label="Values"><code>function(callback) { callback([{id: 1, label: 'One'}]); })</code></td>
                        <td data-label="Default value" class="slds-cell-shrink"><code>function () { callback([]); }</code></td>
                    </tr>
                    <tr>
                        <th scope="row"><code>filledSearchTermQuery</code></th>
                        <td data-label="Behavior">A function that runs <code>callback</code>, which passes an array of results, when a filled search is performed; only used when <code>items</code> is empty</td>
                        <td data-label="Values"><code>function(searchTerm, callback) { callback([{id: 1, label: 'One'}]); })</code></td>
                        <td data-label="Default value" class="slds-cell-shrink"><code>function (searchTerm, callback) { callback([]); }</code></td>
                    </tr>
                    <tr>
                        <th scope="row"><code>initialSelection</code></th>
                        <td data-label="Behavior">An object or array of objects that the lookup will initially have selected</td>
                        <td data-label="Values">Either a valid search result object or an array of result objects</td>
                        <td data-label="Default value" class="slds-cell-shrink"><code>null</code></td>
                    </tr>
                    <tr>
                        <th scope="row"><code>onClickNew</code></th>
                        <td data-label="Behavior">A function that runs when a user clicks the "New" link in the dropdown</td>
                        <td data-label="Values">Any callback function</td>
                        <td data-label="Default value" class="slds-cell-shrink"><code>null</code></td>
                    </tr>
                    <tr>
                        <th scope="row"><code>onChange</code></th>
                        <td data-label="Behavior">A function that runs when a user selects a search result or clears a selection.</td>
                        <td data-label="Values">Any callback function, which can receive two parameters &mdash; <code>currentSelection</code>: the current item object that is passed in, and <code>isAdd</code>: a boolean that is true on addition of a selection and false on removal</td>
                        <td data-label="Default value" class="slds-cell-shrink"><code>function(currentSelection, isAdd) {}</code></td>
                    </tr>
                    <tr>
                        <th scope="row"><code>showSearch</code></th>
                        <td data-label="Behavior">Determines whether the search prompt appears when a user has typed in search term text</td>
                        <td data-label="Values"><code>true</code> or <code>false</code></td>
                        <td data-label="Default value" class="slds-cell-shrink"><code>false</code></td>
                    </tr>
                    <tr>
                        <th scope="row"><code>searchDelay</code></th>
                        <td data-label="Behavior">Determines the delay (in milliseconds) following user input before a filtered <code>items</code> list is displayed</td>
                        <td data-label="Values">Any number</td>
                        <td data-label="Default value" class="slds-cell-shrink"><code>500</code></td>
                    </tr>
                </tbody>
            </table>
        </div>
        <h4 class="site-text-heading--medium">Methods</h4>
{{#aljs-pre-container type="js"}}
$('#lookup-01').lookup('getSelection');
$('#lookup-01').lookup('setSelection', { id: 1, label: 'item1'});
$('#lookup-01').lookup('setSelection', [{ id: 1, label: 'item1'}, { id: 2, label: 'item2'}]);
{{/aljs-pre-container}}
        <p class="slds-m-top--medium">This table details the methods available for the jQuery function.</p>
        <div class="slds-scrollable--x">
            <table class="slds-table slds-table--bordered slds-max-medium-table--stacked slds-no-row-hover slds-m-top--medium">
                <thead>
                    <tr class="site-text-heading--label">
                        <th scope="col">Method</th>
                        <th scope="col">jQuery object</th>
                        <th scope="col">Parameters</th>
                        <th scope="col">Outcome</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <th scope="row"><code>getSelection</code></th>
                        <td data-label="jQuery object">The target lookup</td>
                        <td data-label="Parameters">None</td>
                        <td data-label="Outcome">The object that is selected is returned</td>
                    </tr>
                    <tr>
                        <th scope="row"><code>setSelection</code></th>
                        <td data-label="jQuery object">The target lookup</td>
                        <td data-label="Parameters">A valid search result object with <code>id</code> (required unique string) and <code>label</code> (required string) properties</td>
                        <td data-label="Outcome">The lookup is set to the passed in selection(s)</td>
                    </tr>
                </tbody>
            </table>
        </div>
    {{!--</div>
</div>--}}