UNPKG

react-antd-admin-panel

Version:

Easy prototyping admin panel using React and Antd

20 lines 648 B
export default class StepsItem { constructor() { this._done = true; this._title = ''; // Once next(Section) is called the Section will be drawn in the Steps-component. this._content = true; } done(v) { this._done = v; return this; } title(v) { this._title = v; return this; } content(v) { this._content = v; return this; } // Steps.tsx will call this to get the item-object. getObject() { return { done: this._done, title: this._title, content: (n) => this._content(n) }; } } //# sourceMappingURL=StepsItem.js.map