UNPKG

@syncfusion/ej2-react-gantt

Version:
46 lines (45 loc) 1.8 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import { ComplexBase } from '@syncfusion/ej2-react-base'; /** * `ColumnDirective` represent a column of the react Gantt. * It must be contained in a Gantt component(`GanttComponent`). * ```tsx * <GanttComponent dataSource={data} allowSelection={true} allowSorting={true}> * <ColumnsDirective> * <ColumnDirective field='ID' width='150'></ColumnDirective> * <ColumnDirective field='taskName' headerText='Task Name' width='200'></ColumnDirective> * </ColumnsDirective> * </GanttComponent> * ``` */ var ColumnDirective = /** @class */ (function (_super) { __extends(ColumnDirective, _super); function ColumnDirective() { return _super !== null && _super.apply(this, arguments) || this; } ColumnDirective.moduleName = 'column'; return ColumnDirective; }(ComplexBase)); export { ColumnDirective }; var ColumnsDirective = /** @class */ (function (_super) { __extends(ColumnsDirective, _super); function ColumnsDirective() { return _super !== null && _super.apply(this, arguments) || this; } ColumnsDirective.propertyName = 'columns'; ColumnsDirective.moduleName = 'columns'; return ColumnsDirective; }(ComplexBase)); export { ColumnsDirective };