@syncfusion/ej2-react-navigations
Version:
A package of Essential JS 2 navigation components such as Tree-view, Tab, Toolbar, Context-menu, and Accordion which is used to navigate from one page to another for React
47 lines (46 loc) • 1.8 kB
JavaScript
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';
/**
* `TabItemDirective` represent a item of the React Tab.
* It must be contained in a Tab component(`Tab`).
* ```tsx
* <TabComponent>
* <TabItemsDirective>
* <TabItemDirective header= { 'Header 1' } content= { 'Content 1' } />
* <TabItemDirective header= { 'Header 2' } content= { 'Content 2' } />
* <TabItemsDirective>
* </TabComponent>
* ```
*/
var TabItemDirective = /** @class */ (function (_super) {
__extends(TabItemDirective, _super);
function TabItemDirective() {
return _super !== null && _super.apply(this, arguments) || this;
}
TabItemDirective.moduleName = 'tabItem';
TabItemDirective.complexTemplate = { 'header.text': 'header.text' };
return TabItemDirective;
}(ComplexBase));
export { TabItemDirective };
var TabItemsDirective = /** @class */ (function (_super) {
__extends(TabItemsDirective, _super);
function TabItemsDirective() {
return _super !== null && _super.apply(this, arguments) || this;
}
TabItemsDirective.propertyName = 'items';
TabItemsDirective.moduleName = 'tabItems';
return TabItemsDirective;
}(ComplexBase));
export { TabItemsDirective };