@progress/kendo-react-grid
Version:
React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package
60 lines (59 loc) • 1.91 kB
TypeScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import { GridSelectionChangeEvent } from './interfaces/events.js';
import { GridColumnProps } from './interfaces/GridColumnProps.js';
import { GridProps } from './interfaces/GridProps.js';
import * as React from 'react';
/**
* Represents the KendoReact Grid's StatusItem object.
*/
export interface StatusItem {
/**
* The type of the status item.
* Could be `sum`, `min`, `max`, `average`, `count`, `isTrue`, `isFalse`, `earliest` or `latest`.
*/
type: string;
/**
* The calculated value of the status item.
*/
value: number | boolean | Date;
/**
* The formatted value of the status item.
*/
formattedValue: string;
}
/**
* Represents the props of the KendoReact Grid's StatusBar component.
*/
export interface StatusBarProps {
/**
* The collection of status items to display in the status bar.
*/
data: StatusItem[];
}
/**
* Represents the KendoReact Grid's StatusBar component.
*/
export declare const StatusBar: React.FunctionComponent<StatusBarProps>;
/**
* @hidden
*/
export declare const leafColumns: (columns: GridColumnProps[]) => GridColumnProps[];
/**
* Represents the arguments of the getStatusData function.
*/
export type StatusDataArgs = Pick<GridSelectionChangeEvent, 'dataItems' | 'target' | 'select'> & {
dataItemKey: Required<GridProps>['dataItemKey'];
};
/**
* Calculates the status data.
*
* @param args StatusDataArgs
* @returns StatusItem[]
*/
export declare const getStatusData: (args: StatusDataArgs) => StatusItem[];