如何自定义dhtmlxscheduler.js文件以在弹出窗口中添加一些字段?

时间:2012-11-07 14:13:33

标签: dhtmlx

我对dhtmlx调度程序有一些要求,在这里我想编辑事件并添加一个文本框和一个按钮。你能建议我如何定制.js(压缩)文件。 是否有任何单独的.js文件可用于开发版本。 如果有的话请建议我。enter image description here

谢谢, 拉哈西克哈

2 个答案:

答案 0 :(得分:2)

可以配置此表单(或灯箱)的详细信息。

有关如何执行此操作的文档是here

无需编辑主dhtmlx源代码。

答案 1 :(得分:1)

我找到了这个解决方案: 修改文件dhtmlxscheduler.js我的意思是section字段:

lightbox: {
        sections: [
            { name: "description", height: 40, map_to: "text", type: "textarea", focus: true },
            { name: "Note", height: 40, map_to: "text", type: "textarea", focus: true },
            { name: "Status", height: 40, map_to: "text", type: "textarea", focus: true },
            { name: "Type", height: 40, map_to: "text", type: "textarea", focus: true },
            { name: "Sequence", height: 40, map_to: "text", type: "textarea", focus: true },
            {name: "time", height: 72, type: "time", map_to: "auto"}
        ]
    },

labels:{
        dhx_cal_today_button:"Today",
        day_tab:"Day",
        week_tab:"Week",
        month_tab:"Month",
        new_event:"Nouvelle Tache",
        icon_save:"Save",
        icon_cancel:"Cancel",
        icon_details:"Details",
        icon_edit:"Edit",
        icon_delete:"Delete",
        confirm_closing:"",//Your changes will be lost, are your sure ?
        confirm_deleting:"Event will be deleted permanently, are you sure?",
        section_description: "Description",
        section_Note: "Note",
        section_Status: "Status",
        section_Type: "Type",
        section_Sequence: "Sequence",
        section_time:"Periode",