createDataAdapter({ data }) {
        const getValue = () => this.value;
        // Data adapter covers data option.
        return class extends Adapter.DataArray {
            // Retrieve current value.
            current(callback) {
                callback(getValue());
            }
            query(query, callback) {
                callback({ results: data });
            }
        };
    }
/**
     * Create data adapter.
     *
     * @param options Select2 options.
     * @return DataAdapter wrapper.
     */
Create data adapter.
@param options Select2 options.
Create data adapter . @param options Select2 options .
createDataAdapter({ data }) {
        const getValue = () => this.value;
        return class extends Adapter.DataArray {
            current(callback) {
                callback(getValue());
            }
            query(query, callback) {
                callback({ results: data });
            }
        };
    }
createDataAdapter ( { data } ) { const getValue = ( ) => this . value ; return class extends Adapter . DataArray { current ( callback ) { callback ( getValue ( ) ) ; } query ( query , callback ) { callback ( { results : data } ) ; } } ; }
Create data adapter.
Create data adapter .
// Data adapter covers data option. // Retrieve current value.