widgetRemove(widget) {
        const is_itempool_widget = widget.constructor.name === 'ItempoolWidget';
        const widgets_array = is_itempool_widget ? this.itempool_widgets : this.reorderable_widgets;

        widget.dom_pointer.remove();

        const index = widgets_array.indexOf(widget);
        widgets_array.splice(index, 1);

        if (is_itempool_widget) {
            this.itempoolItemChangeAction();
        }
    }
/**
     * Remove a widget from the notebook builder form.
     *
     * @param {Widget} widget
     */
Remove a widget from the notebook builder form.
@param {Widget} widget
Remove a widget from the notebook builder form . @param { Widget } widget
widgetRemove(widget) {
        const is_itempool_widget = widget.constructor.name === 'ItempoolWidget';
        const widgets_array = is_itempool_widget ? this.itempool_widgets : this.reorderable_widgets;
        widget.dom_pointer.remove();
        const index = widgets_array.indexOf(widget);
        widgets_array.splice(index, 1);
        if (is_itempool_widget) {
            this.itempoolItemChangeAction();
        }
    }
widgetRemove ( widget ) { const is_itempool_widget = widget . constructor . name === 'ItempoolWidget' ; const widgets_array = is_itempool_widget ? this . itempool_widgets : this . reorderable_widgets ; widget . dom_pointer . remove ( ) ; const index = widgets_array . indexOf ( widget ) ; widgets_array . splice ( index , 1 ) ; if ( is_itempool_widget ) { this . itempoolItemChangeAction ( ) ; } }
Remove a widget from the notebook builder form.
Remove a widget from the notebook builder form .