UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

61 lines (60 loc) 1.78 kB
import { GridKeydownTargetType_$type } from "./GridKeydownTargetType"; import { IgrBaseEventArgsDetail } from "./igr-base-event-args-detail"; import { GridKeydownEventArgsDetail as GridKeydownEventArgsDetail_internal } from "./GridKeydownEventArgsDetail"; import { ensureEnum, ensureBool } from "igniteui-react-core"; /** * Represents an event, emitted when keydown is triggered over element inside grid's body * This event is fired only if the key combination is supported in the grid. */ export class IgrGridKeydownEventArgsDetail extends IgrBaseEventArgsDetail { createImplementation() { return new GridKeydownEventArgsDetail_internal(); } /** * @hidden */ get i() { return this._implementation; } constructor() { super(); } /** * The `targetType` represents the type of the targeted object. For example a cell or a row */ get targetType() { return this.i.h; } set targetType(v) { this.i.h = ensureEnum(GridKeydownTargetType_$type, v); } /** * Represents the information and details of the object itself */ get target() { return this.i.k; } set target(v) { this.i.k = v; } /** * Represents the original event, that occurred. */ get event() { return this.i.j; } set event(v) { this.i.j = v; } /** * The event is cancelable * `cancel` returns whether the event has been intercepted and stopped * If the value becomes "true", it returns/exits from the method, instantiating the interface */ get cancel() { return this.i.i; } set cancel(v) { this.i.i = ensureBool(v); } }