@internal mark item for removal
(el: GridItemHTMLElement, remove: boolean)
| 2681 | |
| 2682 | /** @internal mark item for removal */ |
| 2683 | private static _itemRemoving(el: GridItemHTMLElement, remove: boolean) { |
| 2684 | if (!el) return; |
| 2685 | const node = el ? el.gridstackNode : undefined; |
| 2686 | if (!node?.grid || el.classList.contains(node.grid.opts.removableOptions.decline)) return; |
| 2687 | remove ? node._isAboutToRemove = true : delete node._isAboutToRemove; |
| 2688 | remove ? el.classList.add('grid-stack-item-removing') : el.classList.remove('grid-stack-item-removing'); |
| 2689 | } |
| 2690 | |
| 2691 | /** @internal called to setup a trash drop zone if the user specifies it */ |
| 2692 | protected _setupRemoveDrop(): GridStack { |
no test coverage detected