与DhtmlxGrid整合
效果如下:
源码 :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | <! DOCTYPE html> < html > < head > < title >Integration with dhtmlxGrid</ title > < meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> < meta http-equiv="X-UA-Compatible" content="IE=edge"/> < link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/> < script src="../../../codebase/dhtmlx.js"></ script > < style > div#layoutObj { position: relative; margin-top: 20px; margin-left: 20px; width: 600px; height: 400px; } </ style > < script > var myLayout, myGrid; function doOnLoad() { myLayout = new dhtmlXLayoutObject({ parent: "layoutObj", pattern: "3L", cells: [{id: "a", text: "dhtmlxGrid"}] }); myGrid = myLayout.cells("a").attachGrid(); myGrid.setImagePath("../../../codebase/imgs/") myGrid.loadXML("../common/grid.xml?etc="+new Date().getTime()); } </ script > </ head > < body onload="doOnLoad();"> < div id="layoutObj"></ div > </ body > </ html > |
【推荐】100%开源!大型工业跨平台软件C++源码提供,建模,组态!
【推荐】2025 HarmonyOS 鸿蒙创新赛正式启动,百万大奖等你挑战
【推荐】博客园的心动:当一群程序员决定开源共建一个真诚相亲平台
【推荐】开源 Linux 服务器运维管理面板 1Panel V2 版本正式发布
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步