Viewport.js 435 B

1
  1. import React from'react';import Module from'../Module';class Viewport extends Module{constructor(a){super(a),this.view=''}render(){let a=this.viewname.value;return this.view=a?this.ModuleSystem.render(a):'',React.createElement('div',{className:'Viewport'},this.view,super.render())}}Viewport.EditPosition='top-left',Viewport.Inputs={viewname:{type:Module.Types.Text,defaultValue:''}},Viewport.Category='Layout';export default Viewport;