Skip to content

jiromm/selectize-plugin-delay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

 

Releases

No releases published

Packages

No packages published