The YHIntegrateDashboard is used to integrate dashboard.
- init
- open
- dispose
Init the integrate dashboard manager.
Open dashboard.
Dispose the integrate dashboard manager.
================================================================================
Requires Node.js v6+ to run.
$ npm i yh-integrate-dashboard-manager
================================================================================
- from /es/YHIntegrateDashboard
import YHIntegrateDashboard from '../es/YHIntegrateDashboard';
- from /lib/YHIntegrateDashboard.min.js
<script type="text/javascript" src="../lib/YHIntegrateDashboard.min.js"></script>
// the dom element used to mount the report
var div = document.getElementById('root');
YHIntegrateDashboard.init(div, 'http://localhost:8080/bi/Viewer?proc=1&action=viewer&hback=true&isAir=true&platform=WAP&browserType=chrome',
'', '400px', '599px', {style: {border: 'none', display: 'none'}});
// open the report
setTimeout(() => {
YHIntegrateDashboard.open(div, {
db: '001', // db path
dbType: 16640 + ''
});
}, 6000);
// the dom used to mount the report
var div = document.getElementById('root');
YHIntegrateDashboard.dispose(div);
================================================================================
- Write MORE Tests
MIT