VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
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-sheet/example_data/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/libs/absol-sheet/example_data/script_01.js
var _ = absol._;
var $ = absol.$;
var TableEditor = absol.sheet.TableEditor;
var data = {
    exampleTitle: "Các loại khác",
    propertyNames: [
        "_47_choose_company",
        "_47_choose_department",
        '_47_choose_employee'
    ],
    propertyDescriptors: {
        _47_choose_company: {
            type: 'enum',
            items: '= form_module.tag2OnCreated.member_of_employee_choose_company(this.table)',
            text: "Công ty"
        },
        _47_choose_department: {
            type: "TreeEnum",
            items: '= form_module.tag2OnCreated.member_of_employee_choose_department(this.table, _47_choose_company)',
            text: "Bộ phận"
        },
        _47_choose_employee: {
            type:'enum',
            items: '= form_module.tag2OnCreated.member_of_employee_by_departmentid(_47_choose_department)',
            text: "Nhân viên"
        }
    },
    records: [
        {
            _47_choose_department: 19,
            _47_choose_employee: 7,
            _47_choose_company: 9
        },
        {
            _47_choose_department: 18,
            _47_choose_company: 9,
            _47_choose_employee: 0
        },
        {
            _47_choose_department: 17,
            _47_choose_employee: 6,
            _47_choose_company: 16
        }
    ]
}


var table = new TableEditor();
var demoDiv = _({
    style: {
        left: '10px',
        top: '10px',
        padding: '5px',
        position: 'fixed',
        backgroundColor: 'white', zIndex: 1000000
    },
    child: table.getView()
});

demoDiv.addTo(document.body);

table.setData(data);

absol.ResizeSystem.update()

VaKeR 2022