UNPKG

yrexpert-js

Version:

L'interface Web pour votre système expert...

65 lines (48 loc) 1.52 kB
/* !----------------------------------------------------------------------------! ! ! ! YRexpert : (Your Relay) Système Expert sous Mumps GT.M et GNU/Linux ! ! Copyright (C) 2001-2015 by Hamid LOUAKED (HL). ! ! ! !----------------------------------------------------------------------------! */ "use strict" var React = require('react'); var ReactBootstrap = require('react-bootstrap'); var { Grid, Row, Col } = ReactBootstrap; var RobotAndyPanel = require('./RobotAndyPanel'); var RobotAndyContainer = React.createClass({ getInitialState: function() { return { status: 'initial' } }, componentWillMount: function() { this.controller = require('./controller-RobotAndyContainer')(this.props.controller, this); }, componentWillReceiveProps: function(newProps) { this.onNewProps(newProps); }, render: function() { //var componentPath = this.controller.updateComponentPath(this); return ( <Grid fluid = {true} className = {this.hideContainer ? 'hidden' : ''} > <Row> <Col md={12}> <RobotAndyPanel controller = {this.controller} /> </Col> </Row> </Grid> ); } }); module.exports = RobotAndyContainer;