HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/anaconda3/Lib/site-packages/panel/dist/lib/models/multiselect.js
import { MultiSelect, MultiSelectView } from "@bokehjs/models/widgets/multiselect";
import { ModelEvent } from "@bokehjs/core/bokeh_events";
export class DoubleClickEvent extends ModelEvent {
    option;
    static __name__ = "DoubleClickEvent";
    constructor(option) {
        super();
        this.option = option;
    }
    get event_values() {
        return { model: this.origin, option: this.option };
    }
    static {
        this.prototype.event_name = "dblclick_event";
    }
}
export class CustomMultiSelectView extends MultiSelectView {
    static __name__ = "CustomMultiSelectView";
    render() {
        super.render();
        for (const option of this.input_el.children) {
            option.addEventListener("dblclick", (event) => {
                if (event.target) {
                    this.model.trigger_event(new DoubleClickEvent(event.target.value));
                }
            });
        }
    }
}
export class CustomMultiSelect extends MultiSelect {
    static __name__ = "CustomMultiSelect";
    constructor(attrs) {
        super(attrs);
    }
    static __module__ = "panel.models.widgets";
    static {
        this.prototype.default_view = CustomMultiSelectView;
    }
}
//# sourceMappingURL=multiselect.js.map