UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

58 lines (57 loc) 1.52 kB
import { CheckedChangedEventArgs as CheckedChangedEventArgs_internal } from "./CheckedChangedEventArgs"; import { ensureBool } from "igniteui-react-core"; export class IgrCheckedChangedEventArgs { createImplementation() { return new CheckedChangedEventArgs_internal(); } get nativeElement() { return this._implementation.nativeElement; } /** * @hidden */ get i() { return this._implementation; } onImplementationCreated() { } constructor() { this.mounted = false; this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } _provideImplementation(i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } get index() { return this.i.c; } set index(v) { this.i.c = +v; } get isChecked() { return this.i.b; } set isChecked(v) { this.i.b = ensureBool(v); } get primaryKey() { return this.i.a; } set primaryKey(v) { if (v && !Array.isArray(v) && typeof (v) == "string") { const re = /\s*(?:,|\s|$)\s*/gm; v = v.split(re); } this.i.a = v; } }