UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

96 lines (95 loc) 2.93 kB
import { ColumnWidth as ColumnWidth_internal } from "./ColumnWidth"; import { ensureBool } from "igniteui-react-core"; /** * Represents a width of a column. */ var IgrColumnWidth = /** @class */ /*@__PURE__*/ (function () { function IgrColumnWidth() { this.mounted = false; this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } IgrColumnWidth.prototype.createImplementation = function () { return new ColumnWidth_internal(); }; Object.defineProperty(IgrColumnWidth.prototype, "nativeElement", { get: function () { return this._implementation.nativeElement; }, enumerable: false, configurable: true }); Object.defineProperty(IgrColumnWidth.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgrColumnWidth.prototype.onImplementationCreated = function () { }; IgrColumnWidth.prototype._provideImplementation = function (i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } }; Object.defineProperty(IgrColumnWidth.prototype, "isStarSized", { /** * Gets or sets whether to use star sizing for the column's width */ get: function () { return this.i.c; }, set: function (v) { this.i.c = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrColumnWidth.prototype, "value", { /** * Gets or sets the fixed width or the proportional width of the column, depending on whether this width is a star width. */ get: function () { return this.i.f; }, set: function (v) { this.i.f = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrColumnWidth.prototype, "minimumWidth", { /** * Gets or sets a minimum width to use when star sizing. */ get: function () { return this.i.e; }, set: function (v) { this.i.e = +v; }, enumerable: false, configurable: true }); IgrColumnWidth.prototype.findByName = function (name) { if (this.findEphemera) { if (name && name.indexOf("@@e:") == 0) { return this.findEphemera(name); } } return null; }; return IgrColumnWidth; }()); export { IgrColumnWidth };