'use strict' var style = require('./styles/basicStyles') var yo = require('yo-yo') var remixLib = require('remix-lib') var ui = remixLib.helpers.ui var csjs = require('csjs-inject') var css = csjs` .container { width: 70%; } ` function BasicPanel (_name, _width, _height) { this.data this.name = _name this.width = _width this.height = _height this.view } BasicPanel.prototype.update = function () { yo.update(this.view, this.render()) } BasicPanel.prototype.hide = function () { this.view.style.display = 'none' } BasicPanel.prototype.show = function () { this.view.style.display = 'block' } BasicPanel.prototype.render = function () { var view = yo`
${this.data}