UNPKG

@xuda.io/xuda-widget-plugin-xuda-drive

Version:

Xuda Drive widget plugin

174 lines (163 loc) 5.2 kB
<!DOCTYPE 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.io/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, }; // DOCS_OBJ[e._session.app_id] = { // [e._session.prog_id]: { // properties: {}, // progFields: [ // { // id: 794069381620, // data: { // type: 'table', // field_id: 'PG_Id', // }, // props: { // fieldType: 'string', // propExpressions: {}, // }, // triggers: [], // }, // { // id: 1709807321408, // data: { // type: 'table', // field_id: 'PG_BK_Id', // }, // props: { // fieldType: 'string', // propExpressions: {}, // }, // widget_props: { // '@xuda.io/xuda-widget-plugin-xuda-drive': { // // label: 'Book Id', // // toolTip: 'Just a tooltip', // // resizable: false, // // align: 'center', // // editable: false, // // filter: false, // // width: 500, // // cellStyle: { color: 'red' }, // // panelProgIdRender: 0, // // panelProgIdEditor: 0, // // sumType: '', // // fieldInputMask: '', // }, // }, // triggers: [], // }, // { // id: 554148618186, // data: { // type: 'table', // field_id: 'PG_Page_Number', // }, // props: { // fieldType: 'string', // propExpressions: {}, // }, // triggers: [], // }, // { // id: 301312119484, // data: { // type: 'table', // field_id: 'PG_Hebrew_Page_Number', // }, // props: { // fieldType: 'string', // propExpressions: {}, // }, // triggers: [], // }, // { // id: 11645998971, // data: { // type: 'table', // field_id: 'PG_Chapter', // }, // props: { // fieldType: 'string', // propExpressions: {}, // }, // triggers: [], // }, // { // id: 1474487142006, // data: { // type: 'table', // field_id: 'PG_Base_Url', // }, // props: { // fieldType: 'string', // propExpressions: {}, // }, // triggers: [], // }, // { // id: 212494573220, // data: { // type: 'table', // field_id: 'PG_PR_Id', // }, // props: { // fieldType: 'number', // propExpressions: {}, // }, // triggers: [], // }, // { // id: 873998420050, // data: { // type: 'table', // field_id: 'PG_Chapter_Name', // }, // props: { // fieldType: 'string', // propExpressions: {}, // }, // triggers: [], // }, // ], // }, // }; plugin.viewer({}, e); }, 2000); </script> </body> </html>