API REFERENCE

conditionPresetsChanged

Emitted when advanced condition presets change. Connect presets to user preference storage.

What does this API do?

Emitted when advanced condition presets change. Connect presets to user preference storage.

API for Pro features: Advanced filter and built-in compound condition editor

Exact input and result types

typescript
conditionPresetsChanged: { presets: Array<{ name: string; json: string }> }

Usage flow

Subscribe with grid.addEventListener('conditionPresetsChanged', handler). The result is in event.detail, and event names are case-sensitive. Remove subscriptions when disposing of the view.

javascript
const controller = new AbortController();
grid.addEventListener('conditionPresetsChanged', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();

Feature explanations and examples