Skip to content

Commit

Permalink
chore: change recycle dropzone border when drag starts
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Aug 15, 2024
1 parent 1dbf1ca commit e110817
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/example9-row-reordering.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

.recycle-bin {
width: 120px;
border: 1px solid gray;
border: 2px solid #e4e4e4;
background: beige;
padding: 4px;
font-size: 12pt;
Expand Down Expand Up @@ -262,6 +262,7 @@ <h2>View Source:</h2>
document.body.appendChild(proxy);

dd.helper = proxy;
dropzoneElm.style.border = '2px dashed pink';

return proxy;
});
Expand Down Expand Up @@ -292,6 +293,8 @@ <h2>View Source:</h2>
return;
}
dd.helper.remove();
dropzoneElm.style.border = '2px solid #e4e4e4';
dropzoneElm.style.background = '';

if (dd.mode != "recycle" || dd.target.id !== 'dropzone') {
return;
Expand All @@ -304,7 +307,6 @@ <h2>View Source:</h2>
}
grid.invalidate();
grid.setSelectedRows([]);
dropzoneElm.style.background = '';
});

grid.onAddNewRow.subscribe(function (e, args) {
Expand Down

0 comments on commit e110817

Please sign in to comment.