plugin/plugin.types.ts

ngxsmk-ui-kit · packages/cdk/spreadsheet/plugin/plugin.types.ts · typescript · MIT
files

Interface for building spreadsheet plugins with lifecycle hooks for rendering, editing, sorting, filtering, and data manipulation operations.

// Source: https://github.com/NGXSMK/ngxsmk-ui-kit | License: MIT | Copyright 2026 NGXSMK contributors
// Provided via justclaw.it.com; keep this notice with the code.
import type { SpreadsheetEngine } from '../spreadsheet-engine';

/** Plugin lifecycle interface. Every spreadsheet plugin must implement this. */
export interface SpreadsheetPlugin {
  /** Unique plugin name for identification. */
  readonly name: string;
  /** Execution priority – lower runs first. Default 0. */
  readonly priority?: number;
  /** Called when the engine initializes. */
  onInit?(engine: SpreadsheetEngine): void;
  /** Called when the engine is destroyed. */
  onDestroy?(): void;
  /** Called before each render cycle. Return false to cancel. */
  onBeforeRender?(): boolean;
  /** Called after each render cyc

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key