igniteui-react-grids
Version:
Ignite UI React grid components.
85 lines (84 loc) • 3.02 kB
JavaScript
import { __extends } from "tslib";
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.
*/
var IgrGridKeydownEventArgsDetail = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgrGridKeydownEventArgsDetail, _super);
function IgrGridKeydownEventArgsDetail() {
return _super.call(this) || this;
}
IgrGridKeydownEventArgsDetail.prototype.createImplementation = function () {
return new GridKeydownEventArgsDetail_internal();
};
Object.defineProperty(IgrGridKeydownEventArgsDetail.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrGridKeydownEventArgsDetail.prototype, "targetType", {
/**
* The `targetType` represents the type of the targeted object. For example a cell or a row
*/
get: function () {
return this.i.h;
},
set: function (v) {
this.i.h = ensureEnum(GridKeydownTargetType_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrGridKeydownEventArgsDetail.prototype, "target", {
/**
* Represents the information and details of the object itself
*/
get: function () {
return this.i.k;
},
set: function (v) {
this.i.k = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrGridKeydownEventArgsDetail.prototype, "event", {
/**
* Represents the original event, that occurred.
*/
get: function () {
return this.i.j;
},
set: function (v) {
this.i.j = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrGridKeydownEventArgsDetail.prototype, "cancel", {
/**
* 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: function () {
return this.i.i;
},
set: function (v) {
this.i.i = ensureBool(v);
},
enumerable: false,
configurable: true
});
return IgrGridKeydownEventArgsDetail;
}(IgrBaseEventArgsDetail));
export { IgrGridKeydownEventArgsDetail };