API REFERENCE
preDestroyed
Provides state and capture issues before the Grid is destroyed. Use for saving view preferences and cleaning up resources.
What does this API do?
Provides state and capture issues before the Grid is destroyed. Use for saving view preferences and cleaning up resources.
Exact input and result types
preDestroyed: SyGridPreDestroyedDetailUsage flow
Subscribe with grid.addEventListener('preDestroyed', handler). The result is in event.detail, and event names are case-sensitive. Remove subscriptions when disposing of the view.
const controller = new AbortController();
grid.addEventListener('preDestroyed', event => {
console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();