igniteui-react-grids
Version:
Ignite UI React grid components.
58 lines (57 loc) • 1.63 kB
JavaScript
import { IgrBaseEventArgsDetail } from "./igr-base-event-args-detail";
import { RowToggleEventArgsDetail as RowToggleEventArgsDetail_internal } from "./RowToggleEventArgsDetail";
import { ensureBool } from "igniteui-react-core";
/**
* Represents event arguments related to the row's expansion state being changed in a grid
*/
export class IgrRowToggleEventArgsDetail extends IgrBaseEventArgsDetail {
createImplementation() {
return new RowToggleEventArgsDetail_internal();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor() {
super();
}
/**
* Represents the ID of the row that emitted the event (which state is changed)
* @deprecated Use the `rowKey` property instead.
*/
get rowID() {
return this.i.i;
}
set rowID(v) {
this.i.i = v;
}
get rowKey() {
return this.i.j;
}
set rowKey(v) {
this.i.j = v;
}
/**
* Returns the state of the row after the operation has ended
* Indicating whether the row is being expanded (true) or collapsed (false)
*/
get expanded() {
return this.i.h;
}
set expanded(v) {
this.i.h = ensureBool(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.g;
}
set cancel(v) {
this.i.g = ensureBool(v);
}
}