addItem({ id, text }) {
        // Editor options.
        const { multiple } = this.options;
        // Clean up value on single selection.
        if (!multiple) {
            this.value = [];
        }
        // Copy to create new value.
        this.value = [...this.value, { id, text }];
    }
/**
     * Add item to editor value.
     *
     * @param item Editor item.
     */
Add item to editor value.
@param item Editor item.
Add item to editor value . @param item Editor item .
addItem({ id, text }) {
        const { multiple } = this.options;
        if (!multiple) {
            this.value = [];
        }
        this.value = [...this.value, { id, text }];
    }
addItem ( { id , text } ) { const { multiple } = this . options ; if ( ! multiple ) { this . value = [ ] ; } this . value = [ ... this . value , { id , text } ] ; }
Add item to editor value.
Add item to editor value .
// Editor options. // Clean up value on single selection. // Copy to create new value.