INNER CODE UNIT · JavaScript

attach

Corsinvest/cv4pve-admin · src/Corsinvest.ProxmoxVE.Admin.Core/wwwroot/js/cv4pve.js:18

    function attach(dialog) {
        if (dialog.dataset.resizerAttached) return;
        dialog.dataset.resizerAttached = 'true';

        setTimeout(function () {
            const bar = document.createElement('div');
            bar.className = 'rz-dialog-resize-bar cv4pve-side-dialog-resizer';
            bar.title = 'Drag to resize';
            bar.setAttribute('aria-label', 'Resize side dialog');
            const span = document.createElement('span');
            span.className = 'rz-resize';
            span.setAttribute('aria-hidden', 'true');
            bar.appendChild(span);
            document.body.appendChild(bar);

            positionBar(bar, dialog);

            const resizer = Radzen.createSideDialogResizer(bar, dialog, { position: 'right', minWidth: 300 });

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…