@xuda.io/xuda-widget-plugin-xuda-drive
Version:
Xuda Drive widget plugin
54 lines (44 loc) • 1.32 kB
HTML
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AG Grid Plugin Tester</title>
<script src="https://master.xuda.ai/dist/runtime/js/xuda-runtime-slim.js"></script>
<style>
html,
body {
height: 100%;
width: 100%;
}
</style>
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div id="tester"></div>
<script type="module">
import * as plugin from '../src/runtime.mjs';
var xu = new xuda($('#tester')[0], { domain: 'master.xuda.io' });
setTimeout(() => {
const SESSION_ID = Object.keys(SESSION_OBJ)[0];
var _session = {
...SESSION_OBJ[SESSION_ID],
prog_id: '5b1_cmp_189d0a5c99e2',
api_key: 'pk_e3c62dd6084d61dde054eb9ddb21bd21',
DS_GLB: {
1: { prog_id: '5b1_cmp_189d0a5c99e2', rows_found: 0, data_feed: { rows: [] } },
},
};
const e = {
SESSION_ID,
$containerP: $('#embed_' + SESSION_ID),
dsP: 1,
plugin_name: '@xuda.io/xuda-widget-plugin-xuda-drive',
_session,
SESSION_OBJ,
};
plugin.viewer({}, e);
}, 2000);
</script>
</body>
</html>