![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /var/www/html/libs/absol-form/demo/ |
Upload File : |
document.body.style.fontSize = '14px'; document.body.style.fontFamily = 'Arial, sans-serif'; var example = { app: "EZUI", version: 1, layout: { tag: "Container", layout: "grid", column: ['auto', 500], rowGap: 10, columnGap: 50, alignItems: "center", children: [ { tag: 'Label', value: 'Tiêu đề', fontSize: 20, fontWeight: 'bold', }, { tag: 'TextInput', placeHolder: 'Nhập tiêu đề', width: '100%', readOnly: true, }, { tag: 'Label', value: 'Nội dung' }, { tag: 'TextInput', placeHolder: 'Nhập nội dung', width: '100%', height: 100, }, { tag: "Container" }, { tag: 'ComboBox', items: '= getItems()', width: `100%`, searchable: true, name: "sl_union", }, { tag: "Container" }, { tag: "Container", union: "sl_union", unionValues: [0] }, { tag: "Label", value: "union 1", union: "sl_union", unionValues: [1] }, { tag: "Label", value: "union 2", union: "sl_union", unionValues: [2] }, { tag: "Label", value: "union 3", union: "sl_union", unionValues: [3] }, { tag: "Label", value: "union 4", union: "sl_union", unionValues: [4] }, { tag: "Label", value: "union check" }, { tag: 'CheckBox', name: "cbx_union", }, { tag: "Button", text: "OK", width: 200, colSpan: 2, justifySelf: 'center', union: "cbx_union", unionValues: [true], }, ] }, blocks: [], lines: [], diagram: {} }; var editor = new absol.form.EasyUIEditor(); editor.getView().addStyle({ width: "100%", height: "100%", }).addTo(document.body); editor.start(); editor.setData(example); // var eBuilder = absol.form.EBuilder.shareInstance; // // var Class = eBuilder.makeClass(example); // var comp = new Class({ // context: { // getItems: function () { // return Array(4).fill(0).map((u, i) => ({ text: 'item ' + i, value: i })); // }, // host: {} // } // }); // console.log(comp); // comp.domElt.addTo(document.body); // comp.domElt.style.display = 'inline-grid'; // comp.start(); // // comp.afterEntryCompleted().then(() => { // console.log("Entry completed"); // });