export class CheckboxHeaderRenderer {
    init(params) {
        this.params = params;
        this.createHeader();
    }
    getGui() {
        return this.eGui;
    }
    refresh(params) {
        this.params = Object.assign(Object.assign({}, this.params), params);
        return true;
    }
    createHeader() {
        this.eGui = document.createElement('div');
        this.eGui.style.display = 'flex';
        this.eGui.style.alignItems = 'center';
        this.eGui.style.justifyContent = 'center';
        this.eCheckbox = document.createElement('ifx-checkbox');
        this.eCheckbox.setAttribute('size', 's');
        this.eCheckbox.setAttribute('checked', 'false');
        this.eCheckbox.addEventListener('ifxChange', (event) => {
            const checked = event.detail;
            if (this.params.onSelectAll) {
                this.params.onSelectAll(checked);
            }
        });
        this.eGui.appendChild(this.eCheckbox);
    }
}
//# sourceMappingURL=checkboxHeaderRenderer.js.map
