Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "core/CvWorkbenchMenu"

Index

Variables

CvWorkbenchMenu

CvWorkbenchMenu: ClassicComponentClass<CvWorkbenchMenuProps> = React.createClass<CvWorkbenchMenuProps, CvWorkbenchMenuState>({mixins: [CvBaseMixin],appWinDef: function() {return this.props.appWinDef || this.firstInScope(AppWinDef);},getChildContext: function() {const ctx = this.getDefaultChildContext();ctx.cvContext.scopeCtx.scopeObj = this.appWinDef();return ctx;},getDefaultProps: function() {return {appWindDef:null, menuItemRenderer:null, wrapperElemName:'span', wrapperElemProps:{}};},render: function () {const appWinDef:AppWinDef = this.appWinDef();if(appWinDef){if(this.props.menuItemRenderer) {return React.createElement(this.props.wrapperElemName, this.props.wrapperElemProps,appWinDef.workbenches.map((workbench:Workbench)=>{ return this.props.menuItemRenderer(workbench) }))} else if (this.props.renderer) {return this.props.renderer(this.getChildContext().cvContext);} else if (React.Children.count(this.props.children) > 0) {return this.props.children} else {return null;}} else {return null;}},})

Generated using TypeDoc