Skip to content

Latest commit

 

History

History
69 lines (45 loc) · 1.28 KB

README.md

File metadata and controls

69 lines (45 loc) · 1.28 KB

Delayed Select on Enter

Select Selectize option ...

This plugin will allow you to ...

Installation

<script src="src/plugin.js"></script>

Usage

Some intro...

Basic usage

Something...

$('input').selectize({
	plugins: ['delayed_select'],

    load: function(query, callback) {
        if (query.length < 2) return callback();
        
        // $.ajax(...);
    })
});

Advanced usage

Something...

$('input').selectize({
    plugins: {
        'delayed_select': {
            selectSingleMatch: false,
            filter: function(input, item) {
                return input == item.code;
            }
        }
    },

    load: function(query, callback) {
        if (query.length < 2) return callback();
        
        // $.ajax(...);
    })
});

Options

Something about options...

License

Copyright © 2017 Aram Baghdasaryan

Licensed under the MIT

Follow me