UNPKG

@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

50 lines (49 loc) 1.95 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 * as React from 'react'; import { AppBar } from '@syncfusion/ej2-navigations'; import { ComponentBase, applyMixins } from '@syncfusion/ej2-react-base'; /** * `AppBarComponent` represents the Essential JS 2 React AppBar Component. * ```ts * <AppBarComponent></AppBarComponent> * ``` */ var AppBarComponent = /** @class */ (function (_super) { __extends(AppBarComponent, _super); function AppBarComponent(props) { var _this = _super.call(this, props) || this; _this.initRenderCalled = false; _this.checkInjectedModules = true; _this.statelessTemplateProps = null; _this.templateProps = null; _this.immediateRender = true; _this.isReactMock = true; _this.portals = []; return _this; } AppBarComponent.prototype.render = function () { this.isReactMock = false; if (((this.element && !this.initRenderCalled) || this.refreshing) && !this.isReactForeceUpdate) { _super.prototype.render.call(this); this.initRenderCalled = true; } else { return React.createElement('header', this.getDefaultAttributes(), [].concat(this.props.children, this.portals)); } }; return AppBarComponent; }(AppBar)); export { AppBarComponent }; applyMixins(AppBarComponent, [ComponentBase, React.Component]);