igniteui-react-grids
Version:
Ignite UI React grid components.
40 lines (39 loc) • 1.16 kB
JavaScript
import { IgrBaseEventArgsDetail } from "./igr-base-event-args-detail";
import { ColumnVisibilityChangedEventArgsDetail as ColumnVisibilityChangedEventArgsDetail_internal } from "./ColumnVisibilityChangedEventArgsDetail";
import { ensureBool } from "igniteui-react-core";
/**
* The event arguments after a column's visibility is changed.
*/
export class IgrColumnVisibilityChangedEventArgsDetail extends IgrBaseEventArgsDetail {
createImplementation() {
return new ColumnVisibilityChangedEventArgsDetail_internal();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor() {
super();
}
/**
* Represents the column the event originated from
*/
get column() {
return this.i.h;
}
set column(v) {
this.i.h = v;
}
/**
* The new hidden state that the column will have, if operation is successful.
* Will be `true` when hiding and `false` when showing.
*/
get newValue() {
return this.i.g;
}
set newValue(v) {
this.i.g = ensureBool(v);
}
}