Package Exports
- @gridnexa/core
Readme
GridNexa Core | Data Grid Contracts
Framework-neutral TypeScript contracts for GridNexa data grid packages.
@gridnexa/core contains the shared models used by the React, Angular, Vue, and JavaScript packages. Most applications should install a framework package directly; install core when you need shared types for library wrappers, backend contracts, or cross-framework tooling.
Quick Links
- Website: https://www.gridnexa.in/
- Docs and playground: https://www.gridnexa.in/docs/basic-grid
- Help: https://www.gridnexa.in/help
- Repository: https://github.com/mhalungekar9/SmartGrid
Install
npm install @gridnexa/coreMost apps should install one of these instead:
npm install @gridnexa/react
npm install @gridnexa/angular
npm install @gridnexa/vue
npm install @gridnexa/javascriptIncluded Contracts
ColumnGridOptionsColumnFilterModelAdvancedFilterModelMergedHeaderGridTransactionServerSideOperationStateGridNexaToolbarOptionsGridNexaFooterOptionsGridNexaSidePanelOptionsGridNexaFillWidthOptionsGridNexaPresetGridNexaStateStorageOptionsGridNexaColumnToolOptionsGridNexaIconSetGridNexaApiPivotAggregationGridNexaAiRequestGridNexaCommandPlanGridNexaCommandActionGridNexaAiOptions
AI Action Plan Contract
import type { GridNexaAiRequest, GridNexaCommandPlan } from "@gridnexa/core";
export async function gridAiProvider(
request: GridNexaAiRequest,
): Promise<GridNexaCommandPlan> {
return {
title: "Focus engineering performance",
actions: [
{
type: "setColumnFilter",
columnId: "department",
filter: { type: "set", operator: "in", values: ["Engineering"] },
},
{ type: "sort", columnId: "score", direction: "desc" },
],
};
}GridNexa AI actions are explicit and allow-listed. Providers return JSON plans; the grid decides how to apply them.
Shared Configuration Contracts
Core includes the typed contracts used by all framework packages:
columnToolscontrols header buttons globally, with per-column overrides throughcolumn.tools.footercontrols row count, selected rows, selected cell, selected range, filter count, sort status, pagination, or a custom renderer.sidePanelcontrols the right-side Columns/Pivot and Filters tools, including disabled state and default active panel.fillWidthcontrols whether visible columns stop at their real total width or stretch to fill remaining container width withflexcolumns or the last visible data column.presetprovides typed shortcuts for common grid modes such asbasic,admin,spreadsheet, andanalytics.stateStoragedescribes saved-view persistence for column, filter, sort, pagination, and side-panel state.summariescontrols footer and selected-range numeric summaries.viewsdescribes named saved views and localStorage keys.commandPaletteenables a command launcher contract for discoverable grid actions.changeReviewdescribes pre-save review of edits, row additions, and deletions.validationdescribes fast cell validation rules and save blocking.diagnosticsdescribes developer-facing runtime diagnostics.iconsprovides global icon replacement, whilecolumn.iconscan override icons for a specific column.toolbarenables or hides quick filter, find, filters, advanced filter, columns, exports, add/delete rows, undo/redo, fill, and save-all tools.
React consumers should import @gridnexa/react/index.css once in the app entry. That exported CSS carries the shared header layout, drag/reorder indicators, pinned-column rules, popovers, scrollbars, and theme variables needed for installed apps to match the playground.
Framework Packages
@gridnexa/reactfor React UI applications@gridnexa/angularfor Angular UI applications@gridnexa/vuefor Vue UI applications@gridnexa/javascriptfor framework-free JavaScript and TypeScript applications
License
MIT