createItem(container) {
        if (!isHTMLElement(container)) {
            throw new TypeError("Missing container: A selector requires a container");
        }

        container.classList.add("selector-item");

        const item = Object.create(BaseSelectorItem, {
            container: { value: container },
            selector: { value: this },
        }).init();

        this.addItem(item);

        return item;
    }
/**
     * Creates a selector item
     * @param {HTMLElement} container 
     */
Creates a selector item
@param {HTMLElement} container
Creates a selector item @param { HTMLElement } container
createItem(container) {
        if (!isHTMLElement(container)) {
            throw new TypeError("Missing container: A selector requires a container");
        }
        container.classList.add("selector-item");
        const item = Object.create(BaseSelectorItem, {
            container: { value: container },
            selector: { value: this },
        }).init();
        this.addItem(item);
        return item;
    }
createItem ( container ) { if ( ! isHTMLElement ( container ) ) { throw new TypeError ( "Missing container: A selector requires a container" ) ; } container . classList . add ( "selector-item" ) ; const item = Object . create ( BaseSelectorItem , { container : { value : container } , selector : { value : this } , } ) . init ( ) ; this . addItem ( item ) ; return item ; }
Creates a selector item
 @param {HTMLElement} container
Creates a selector item @param { HTMLElement } container