原創|使用教程|編輯:郝浩|2013-08-13 11:01:56.000|閱讀 1806 次
概述:本文將為大家介紹如何使用flexmonster.js庫將數據透視表控件Pivot Table & Charts控件嵌入到Web應用程序中。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關鏈接:
Pivot Table & Charts是非常輕便的數據透視表控件,在上一篇使用教程慧都小編為大家介紹了Pivot Table & Charts報表的創建方法,本文將為大家介紹如何使用flexmonster.js庫將Pivot Table & Charts控件嵌入到HTML中。
嵌入Pivot Table控件到Web應用程序的詳細操作步驟如下:
<div id="pivotContainer">The component will appear within DIV.</div> <script type="text/javascript" src="flexmonster/flexmonster.js"></script> <script type="text/javascript"> flexmonster.embedPivotComponent("flexmonster/", "pivotContainer","100%", "500", {configUrl : "config.xml"}); </script>
方法 embedPivotComponent(path, containderId, width, height, parameters)的參數說明:
①、path - 指定控件文件夾的URL地址。
②、containderId - 指定你想要更換控件的內容HTML元素的ID。
③、width - 指定控件寬度。
④、height - 指定控件高度。
⑤、parameters - 指定額外的參數名:value pairs。
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:慧都控件網