UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

96 lines (61 loc) 2.15 kB
import { IgcColumnComponent } from './igc-column-component'; import { IgcGridBaseDirective } from './igc-grid-base-directive'; /** * Represents event arguments related to grid editing. * The event is cancelable * It contains information about the row and the column, as well as the old and nwe value of the element/cell */ export declare class IgcGridEditEventArgs { /** * Provides the ability to cancel the event. */ public cancel: boolean; /** * @deprecated Use the `rowKey` property instead. */ public rowID: any; /** * @deprecated Use the `rowKey` property instead. */ public primaryKey: any; public rowKey: any; public cellID?: { rowID: any; columnID: any; rowIndex: number; }; /** * `rowData` represents the updated/committed data of the row after the edit (newValue) * The only case rowData (of the current object) is used directly, is when there is no rowEditing or transactions enabled */ public rowData: any; /** * Represents the previous (before editing) value of the edited cell. * It's used when the event has been stopped/exited. */ public oldValue: any; /** * Optional * Represents the value, that is being entered in the edited cell * When there is no `newValue` and the event has ended, the value of the cell returns to the `oldValue` */ public newValue?: any; /** * Optional * Represents the column information of the edited cell */ public column?: IgcColumnComponent; /** * Optional * Represents the grid instance that owns the edit event. */ public owner?: IgcGridBaseDirective; /** * Optional * Indicates if the editing consists of adding a new row */ public isAddRow?: boolean; /** * Optional * Indicates if the new value would be valid. * It can be set to return the result of the methods for validation of the grid */ public valid?: boolean; }