Skip to content

gaptree/gap-front-zselect

Repository files navigation

Gap Front Zselect

Install

$ yarn add gap-front-zselect

Usage

import {Zselect} from 'gap-front-zselect';
import {oneElem} from 'gap-front-web';
import {userRepo} from '../../mock/userRepo.js';

const select = new Zselect({
    required: 'required',
    name: 'userId',
    isMulti: true,
    pattern: {
        content: '#{nick} (#{email})',
        selected: '',
        value: '#{userId}'
    }
});

select.onQuery(query => userRepo.query(query));
userRepo.onLoad(users => select.showDropList(users));

select.appendTo(oneElem('.zselect-container'));

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published