Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "core/CvWorkbench"

Index

Variables

CvWorkbench

CvWorkbench: ClassicComponentClass<CvWorkbenchProps> = React.createClass<CvWorkbenchProps, CvWorkbenchState>({mixins: [CvBaseMixin],appWinDef: function() {return this.props.appWinDef || this.firstInScope(AppWinDef);},getDefaultProps: function() {return {appWinDef: null, workbenchId:null, workbench:null}},getChildContext: function() {const ctx = this.getDefaultChildContext();ctx.cvContext.scopeCtx.scopeObj = this.workbench();return ctx;},render: function () {const workbench = this.workbench();if (workbench) {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;}},workbench: function() {if(this.props.workbench) {return this.props.workbench;} else {const appWinDef = this.appWinDef();let workbench = null;appWinDef.workbenches.some((wb)=> {if (wb.workbenchId == this.props.workbenchId) {workbench = wb;return true;} else {return false;}});return workbench;}}})

Render an sdk {Workbench}

Generated using TypeDoc