w-component-vue
Version:
A simple component for vue(vue2).
876 lines (751 loc) • 35 kB
HTML
<html lang="en">
<head>
<meta charset="utf-8">
<title>WAggridVueDyn - Documentation</title>
<script src="scripts/prettify/prettify.js"></script>
<script src="scripts/prettify/lang-css.js"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
<script src="scripts/nav.js" defer></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger" class="navicon-button x">
<div class="navicon"></div>
</label>
<label for="nav-trigger" class="overlay"></label>
<nav >
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-WAggridVueDyn.html">WAggridVueDyn</a></li><li><a href="module-WBadge.html">WBadge</a></li><li><a href="module-WButtonChip.html">WButtonChip</a></li><li><a href="module-WButtonCircle.html">WButtonCircle</a></li><li><a href="module-WCheckbox.html">WCheckbox</a></li><li><a href="module-WCkeditorVueDyn.html">WCkeditorVueDyn</a></li><li><a href="module-WColorPickAlpha.html">WColorPickAlpha</a></li><li><a href="module-WColorPickHexagon.html">WColorPickHexagon</a></li><li><a href="module-WColorPickHexagonGray.html">WColorPickHexagonGray</a></li><li><a href="module-WColorPickHsv.html">WColorPickHsv</a></li><li><a href="module-WColorPickHue.html">WColorPickHue</a></li><li><a href="module-WColorPickStripe.html">WColorPickStripe</a></li><li><a href="module-WColorSelect.html">WColorSelect</a></li><li><a href="module-WColorSelectInput.html">WColorSelectInput</a></li><li><a href="module-WColorSelectPanel.html">WColorSelectPanel</a></li><li><a href="module-WColorSelectPanelBlock.html">WColorSelectPanelBlock</a></li><li><a href="module-WColorSelectPanelHsva.html">WColorSelectPanelHsva</a></li><li><a href="module-WConfirm.html">WConfirm</a></li><li><a href="module-WDialog.html">WDialog</a></li><li><a href="module-WDrawer.html">WDrawer</a></li><li><a href="module-WDropfiles.html">WDropfiles</a></li><li><a href="module-WDynamicList.html">WDynamicList</a></li><li><a href="module-WEchartsVueDyn.html">WEchartsVueDyn</a></li><li><a href="module-WExplorer.html">WExplorer</a></li><li><a href="module-WGroupBaggage.html">WGroupBaggage</a></li><li><a href="module-WGroupChipCheck.html">WGroupChipCheck</a></li><li><a href="module-WGroupChipRadio.html">WGroupChipRadio</a></li><li><a href="module-WGroupDragdrop.html">WGroupDragdrop</a></li><li><a href="module-WGroupIconCheck.html">WGroupIconCheck</a></li><li><a href="module-WGroupIconRadio.html">WGroupIconRadio</a></li><li><a href="module-WGroupTags.html">WGroupTags</a></li><li><a href="module-WHighchartsBitmapDyn.html">WHighchartsBitmapDyn</a></li><li><a href="module-WHighchartsVueDyn.html">WHighchartsVueDyn</a></li><li><a href="module-WHighstockVueDyn.html">WHighstockVueDyn</a></li><li><a href="module-WIcon.html">WIcon</a></li><li><a href="module-WIconLoading.html">WIconLoading</a></li><li><a href="module-WImageCascadingDyn.html">WImageCascadingDyn</a></li><li><a href="module-WImageLazy.html">WImageLazy</a></li><li><a href="module-WImageViewerDyn.html">WImageViewerDyn</a></li><li><a href="module-WInputCheckbox.html">WInputCheckbox</a></li><li><a href="module-WInputRadio.html">WInputRadio</a></li><li><a href="module-WJsonView.html">WJsonView</a></li><li><a href="module-WLeafletVueDyn.html">WLeafletVueDyn</a></li><li><a href="module-WLevelGrade.html">WLevelGrade</a></li><li><a href="module-WListCheck.html">WListCheck</a></li><li><a href="module-WListExpand.html">WListExpand</a></li><li><a href="module-WListExpandItem.html">WListExpandItem</a></li><li><a href="module-WListHorizontal.html">WListHorizontal</a></li><li><a href="module-WListItem.html">WListItem</a></li><li><a href="module-WListRadio.html">WListRadio</a></li><li><a href="module-WListVertical.html">WListVertical</a></li><li><a href="module-WPanelAvatar.html">WPanelAvatar</a></li><li><a href="module-WPanelBulge.html">WPanelBulge</a></li><li><a href="module-WPanelDivideHorizontal.html">WPanelDivideHorizontal</a></li><li><a href="module-WPanelDivideVertical.html">WPanelDivideVertical</a></li><li><a href="module-WPanelLabelItem.html">WPanelLabelItem</a></li><li><a href="module-WPanelScale.html">WPanelScale</a></li><li><a href="module-WPanelScrolly.html">WPanelScrolly</a></li><li><a href="module-WPanelScrollyCore.html">WPanelScrollyCore</a></li><li><a href="module-WPanelStripe.html">WPanelStripe</a></li><li><a href="module-WPopup.html">WPopup</a></li><li><a href="module-WPopupEditText.html">WPopupEditText</a></li><li><a href="module-WProgressBar.html">WProgressBar</a></li><li><a href="module-WProgressCircle.html">WProgressCircle</a></li><li><a href="module-WQuillVueDyn.html">WQuillVueDyn</a></li><li><a href="module-WSegmentsVertical.html">WSegmentsVertical</a></li><li><a href="module-WShellBottomLine.html">WShellBottomLine</a></li><li><a href="module-WShellEllipse.html">WShellEllipse</a></li><li><a href="module-WSlider.html">WSlider</a></li><li><a href="module-WSwitch.html">WSwitch</a></li><li><a href="module-WTableDyn.html">WTableDyn</a></li><li><a href="module-WText.html">WText</a></li><li><a href="module-WTextCore.html">WTextCore</a></li><li><a href="module-WTextInt.html">WTextInt</a></li><li><a href="module-WTextIntCore.html">WTextIntCore</a></li><li><a href="module-WTextSelect.html">WTextSelect</a></li><li><a href="module-WTextSuggest.html">WTextSuggest</a></li><li><a href="module-WTextSuggestCore.html">WTextSuggestCore</a></li><li><a href="module-WTextarea.html">WTextarea</a></li><li><a href="module-WTextareaCore.html">WTextareaCore</a></li><li><a href="module-WThreejsVueDyn.html">WThreejsVueDyn</a></li><li><a href="module-WTimeday.html">WTimeday</a></li><li><a href="module-WTimedayCore.html">WTimedayCore</a></li><li><a href="module-WTimedayCoreRe.html">WTimedayCoreRe</a></li><li><a href="module-WTimedayRange.html">WTimedayRange</a></li><li><a href="module-WTimedayRangeCore.html">WTimedayRangeCore</a></li><li><a href="module-WTimeminute.html">WTimeminute</a></li><li><a href="module-WTimeminuteCore.html">WTimeminuteCore</a></li><li><a href="module-WTimeminuteRange.html">WTimeminuteRange</a></li><li><a href="module-WTimeminuteRangeCore.html">WTimeminuteRangeCore</a></li><li><a href="module-WTinymceVueDyn.html">WTinymceVueDyn</a></li><li><a href="module-WTooltip.html">WTooltip</a></li><li><a href="module-WTree.html">WTree</a></li><li><a href="module-WTreeIconCheckbox.html">WTreeIconCheckbox</a></li><li><a href="module-WTreeIconToggle.html">WTreeIconToggle</a></li><li><a href="module-WVditorDyn.html">WVditorDyn</a></li></ul><h3>Global</h3><ul><li><a href="global.html#binarySearch">binarySearch</a></li><li><a href="global.html#convertColor">convertColor</a></li></ul>
</nav>
<div id="main">
<h1 class="page-title">WAggridVueDyn</h1>
<section>
<header>
</header>
<article>
<div class="container-overview">
<dl class="details">
<dt class="tag-description">Description:</dt>
<dd class="tag-description"><ul class="dummy"><li></p></div></div>
<h3 class="subsection-title" style="margin-top: 1em" data-jsdoc-vuejs="section-props">Props</h3>
<table data-jsdoc-vuejs="table-props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default value</th>
<th>Required?</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>pathItems</code></td>
<td>Array</td>
<td><code>['詳見原始碼']</code></td>
<td>No</td>
<td>輸入ag-grid與w-aggrid-vue組件js檔案位置字串陣列,預設詳見原始碼處props->pathItems->default</td>
</tr><tr>
<td><code>opt</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入w-aggrid-vue設定物件,預設{}</td>
</tr><tr>
<td><code>opt.keys</code></td>
<td>Array</td>
<td>-</td>
<td><b>Yes</b></td>
<td>輸入資料各欄位keys</td>
</tr><tr>
<td><code>opt.rows</code></td>
<td>Array</td>
<td>-</td>
<td><b>Yes</b></td>
<td>輸入資料列,各列為物件,內含各欄位keys之值,例[{},{},...,{}]</td>
</tr><tr>
<td><code>opt.kpHead</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head物件,預設各key值為本身key值</td>
</tr><tr>
<td><code>opt.defHeadMinWidth</code></td>
<td>Number</td>
<td><code>null</code></td>
<td>No</td>
<td>輸入cell預設最小寬度數字,預設為null</td>
</tr><tr>
<td><code>opt.defHeadMaxWidth</code></td>
<td>Number</td>
<td><code>null</code></td>
<td>No</td>
<td>輸入cell預設最小寬度數字,預設為null</td>
</tr><tr>
<td><code>opt.kpHeadWidth</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應cell之寬度物件,預設各key值為undefined</td>
</tr><tr>
<td><code>opt.kpHeadTooltip</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應需tooltip的html字串物件,於各head處滑鼠移入時觸發,預設各key值為undefined</td>
</tr><tr>
<td><code>opt.defHeadAlignH</code></td>
<td>String</td>
<td><code>'center'</code></td>
<td>No</td>
<td>輸入head預設之左右對齊字串,預設為'center'</td>
</tr><tr>
<td><code>opt.kpHeadAlignH</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head之左右對齊字串物件,預設各key值為defHeadAlignH</td>
</tr><tr>
<td><code>opt.defHeadSort</code></td>
<td>Boolean</td>
<td><code>true</code></td>
<td>No</td>
<td>輸入head預設之是否允許排序布林值,預設為true</td>
</tr><tr>
<td><code>opt.kpHeadSort</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head之是否允許排序物件,預設各key值為defHeadSort</td>
</tr><tr>
<td><code>opt.defHeadSortMethod</code></td>
<td>function|String</td>
<td><code>null</code></td>
<td>No</td>
<td>輸入head預設之排序方式函數或字串,若需自行定義則給予函數,若需使用內建的自動轉型判斷方式則給予'auto'字串,預設為null</td>
</tr><tr>
<td><code>opt.kpHeadSortMethod</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head之排序方式函數或字串,若需自行定義則給予函數,若需使用內建的自動轉型判斷方式則給予'auto'字串,預設各key值為defHeadSortMethod</td>
</tr><tr>
<td><code>opt.kpHeadFixLeft</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head之是否固定於左側物件,預設各key值為false</td>
</tr><tr>
<td><code>opt.defHeadFilter</code></td>
<td>Boolean</td>
<td><code>true</code></td>
<td>No</td>
<td>輸入head預設之是否允許過濾布林值,預設為true</td>
</tr><tr>
<td><code>opt.kpHeadFilter</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head之是否允許過濾物件,預設各key值為defHeadFilter</td>
</tr><tr>
<td><code>opt.defHeadFilterType</code></td>
<td>String</td>
<td><code>'num'</code></td>
<td>No</td>
<td>輸入head預設過濾器字串,可選'num'、'text'、'time'、'set',預設為'num'</td>
</tr><tr>
<td><code>opt.kpHeadFilterType</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head之過濾器物件,可使用'num'、'text'、'time'、'set',預設各key值為'num'</td>
</tr><tr>
<td><code>opt.kpHeadRender</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head之渲染函數物件,預設各key值為undefined</td>
</tr><tr>
<td><code>opt.defHeadDrag</code></td>
<td>Boolean</td>
<td><code>true</code></td>
<td>No</td>
<td>輸入head預設之是否允許拖曳布林值,預設為true</td>
</tr><tr>
<td><code>opt.kpHeadDrag</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head之是否允許拖曳物件,預設各key值為defHeadDrag</td>
</tr><tr>
<td><code>opt.kpHeadCheckBox</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head與key的各列是否使用核選方塊物件,預設各key值為false</td>
</tr><tr>
<td><code>opt.kpHeadFocusHighlight</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應key的各列於獲得焦點時是否高亮顯示物件,預設各key值為true</td>
</tr><tr>
<td><code>opt.kpHeadHide</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head是否隱藏物件,預設各key值為false</td>
</tr><tr>
<td><code>opt.kpRowStyle</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應row style之物件,可設定各key欄之函數,函數給予cell值需回傳之row style,預設各key值為undefined</td>
</tr><tr>
<td><code>opt.kpRowDrag</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應col之是否能拖曳排序物件,預設各key值為false</td>
</tr><tr>
<td><code>opt.genRowsPinnTop</code></td>
<td>function</td>
<td><code>null</code></td>
<td>No</td>
<td>輸入產生置頂rows函數,輸入為表內全部數據,預設為null</td>
</tr><tr>
<td><code>opt.genRowsPinnBottom</code></td>
<td>function</td>
<td><code>null</code></td>
<td>No</td>
<td>輸入產生置底rows函數,輸入為表內全部數據,預設為null</td>
</tr><tr>
<td><code>opt.kpColStyle</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應col style之物件,可設定各key欄之col style,預設各key值為undefined</td>
</tr><tr>
<td><code>opt.kpColSpan</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應col span之物件,可設定各key欄之col span,預設各key值為undefined</td>
</tr><tr>
<td><code>opt.kpCellRender</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應cell之渲染函數物件,預設各key值為undefined</td>
</tr><tr>
<td><code>opt.kpCellTooltip</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應cell之tooltip的html字串物件,於各cell處滑鼠移入時觸發,預設各key值為undefined</td>
</tr><tr>
<td><code>opt.defCellAlignH</code></td>
<td>String</td>
<td><code>'center'</code></td>
<td>No</td>
<td>輸入cell預設之左右對齊字串,預設為'center'</td>
</tr><tr>
<td><code>opt.kpCellAlignH</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應cell之左右對齊字串物件,預設各key值為defCellAlignH</td>
</tr><tr>
<td><code>opt.defCellEditable</code></td>
<td>Boolean</td>
<td><code>false</code></td>
<td>No</td>
<td>輸入cell預設之是否可編輯布林值,預設為false</td>
</tr><tr>
<td><code>opt.kpCellEditable</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應cell之是否可編輯物件,預設各key值為defCellEditable</td>
</tr><tr>
<td><code>opt.kpConvertKeysWhenUploadData</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入上傳Excel檔案時,當key轉會成對應新key值物件,預設{}</td>
</tr><tr>
<td><code>opt.rowsChange</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入rows change之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.rowClick</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入row click之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.rowDbClick</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入row double click之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.rowChange</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入row change之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.rowChecked</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入row checked之觸發事件,需使用kpHeadCheckBox開啟指定key的head與對應rows使用checkbox,預設為()=>{}</td>
</tr><tr>
<td><code>opt.rowMouseEnter</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入row mouseenter之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.rowMouseLeave</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入row mouseleave之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.cellClick</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入cell click之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.cellDbClick</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入cell double click之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.cellChange</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入cell change之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.cellMouseEnter</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入cell mouseenter之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.cellMouseLeave</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入cell mouseleave之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.filterChange</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入filter change之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.autoFitColumn</code></td>
<td>Boolean</td>
<td><code>false</code></td>
<td>No</td>
<td>輸入當表格尺寸變更時自動調整欄寬布林值,預設false</td>
</tr><tr>
<td><code>opt.language</code></td>
<td>String</td>
<td><code>'en'</code></td>
<td>No</td>
<td>輸入指定語系字串,可選'en'、'zh-tw'、'zh-cn',預設為'en'</td>
</tr><tr>
<td><code>height</code></td>
<td>Number</td>
<td><code>300</code></td>
<td>No</td>
<td>表格高度,單位為px,預設300</td>
</tr><tr>
<td><code>filterall</code></td>
<td>String</td>
<td><code>''</code></td>
<td>No</td>
<td>輸入對全表數據進行過濾之字串,預設為''</td>
</tr></tbody>
</table>
<div class="container-overview"><div><p>
</li></ul></dd>
</dl>
<div class="description usertext"></p></div></div>
<h3 class="subsection-title" style="margin-top: 1em" data-jsdoc-vuejs="section-props">Props</h3>
<table data-jsdoc-vuejs="table-props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default value</th>
<th>Required?</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>pathItems</code></td>
<td>Array</td>
<td><code>['詳見原始碼']</code></td>
<td>No</td>
<td>輸入ag-grid與w-aggrid-vue組件js檔案位置字串陣列,預設詳見原始碼處props->pathItems->default</td>
</tr><tr>
<td><code>opt</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入w-aggrid-vue設定物件,預設{}</td>
</tr><tr>
<td><code>opt.keys</code></td>
<td>Array</td>
<td>-</td>
<td><b>Yes</b></td>
<td>輸入資料各欄位keys</td>
</tr><tr>
<td><code>opt.rows</code></td>
<td>Array</td>
<td>-</td>
<td><b>Yes</b></td>
<td>輸入資料列,各列為物件,內含各欄位keys之值,例[{},{},...,{}]</td>
</tr><tr>
<td><code>opt.kpHead</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head物件,預設各key值為本身key值</td>
</tr><tr>
<td><code>opt.defHeadMinWidth</code></td>
<td>Number</td>
<td><code>null</code></td>
<td>No</td>
<td>輸入cell預設最小寬度數字,預設為null</td>
</tr><tr>
<td><code>opt.defHeadMaxWidth</code></td>
<td>Number</td>
<td><code>null</code></td>
<td>No</td>
<td>輸入cell預設最小寬度數字,預設為null</td>
</tr><tr>
<td><code>opt.kpHeadWidth</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應cell之寬度物件,預設各key值為undefined</td>
</tr><tr>
<td><code>opt.kpHeadTooltip</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應需tooltip的html字串物件,於各head處滑鼠移入時觸發,預設各key值為undefined</td>
</tr><tr>
<td><code>opt.defHeadAlignH</code></td>
<td>String</td>
<td><code>'center'</code></td>
<td>No</td>
<td>輸入head預設之左右對齊字串,預設為'center'</td>
</tr><tr>
<td><code>opt.kpHeadAlignH</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head之左右對齊字串物件,預設各key值為defHeadAlignH</td>
</tr><tr>
<td><code>opt.defHeadSort</code></td>
<td>Boolean</td>
<td><code>true</code></td>
<td>No</td>
<td>輸入head預設之是否允許排序布林值,預設為true</td>
</tr><tr>
<td><code>opt.kpHeadSort</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head之是否允許排序物件,預設各key值為defHeadSort</td>
</tr><tr>
<td><code>opt.defHeadSortMethod</code></td>
<td>function|String</td>
<td><code>null</code></td>
<td>No</td>
<td>輸入head預設之排序方式函數或字串,若需自行定義則給予函數,若需使用內建的自動轉型判斷方式則給予'auto'字串,預設為null</td>
</tr><tr>
<td><code>opt.kpHeadSortMethod</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head之排序方式函數或字串,若需自行定義則給予函數,若需使用內建的自動轉型判斷方式則給予'auto'字串,預設各key值為defHeadSortMethod</td>
</tr><tr>
<td><code>opt.kpHeadFixLeft</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head之是否固定於左側物件,預設各key值為false</td>
</tr><tr>
<td><code>opt.defHeadFilter</code></td>
<td>Boolean</td>
<td><code>true</code></td>
<td>No</td>
<td>輸入head預設之是否允許過濾布林值,預設為true</td>
</tr><tr>
<td><code>opt.kpHeadFilter</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head之是否允許過濾物件,預設各key值為defHeadFilter</td>
</tr><tr>
<td><code>opt.defHeadFilterType</code></td>
<td>String</td>
<td><code>'num'</code></td>
<td>No</td>
<td>輸入head預設過濾器字串,可選'num'、'text'、'time'、'set',預設為'num'</td>
</tr><tr>
<td><code>opt.kpHeadFilterType</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head之過濾器物件,可使用'num'、'text'、'time'、'set',預設各key值為'num'</td>
</tr><tr>
<td><code>opt.kpHeadRender</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head之渲染函數物件,預設各key值為undefined</td>
</tr><tr>
<td><code>opt.defHeadDrag</code></td>
<td>Boolean</td>
<td><code>true</code></td>
<td>No</td>
<td>輸入head預設之是否允許拖曳布林值,預設為true</td>
</tr><tr>
<td><code>opt.kpHeadDrag</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head之是否允許拖曳物件,預設各key值為defHeadDrag</td>
</tr><tr>
<td><code>opt.kpHeadCheckBox</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head與key的各列是否使用核選方塊物件,預設各key值為false</td>
</tr><tr>
<td><code>opt.kpHeadFocusHighlight</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應key的各列於獲得焦點時是否高亮顯示物件,預設各key值為true</td>
</tr><tr>
<td><code>opt.kpHeadHide</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應head是否隱藏物件,預設各key值為false</td>
</tr><tr>
<td><code>opt.kpRowStyle</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應row style之物件,可設定各key欄之函數,函數給予cell值需回傳之row style,預設各key值為undefined</td>
</tr><tr>
<td><code>opt.kpRowDrag</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應col之是否能拖曳排序物件,預設各key值為false</td>
</tr><tr>
<td><code>opt.genRowsPinnTop</code></td>
<td>function</td>
<td><code>null</code></td>
<td>No</td>
<td>輸入產生置頂rows函數,輸入為表內全部數據,預設為null</td>
</tr><tr>
<td><code>opt.genRowsPinnBottom</code></td>
<td>function</td>
<td><code>null</code></td>
<td>No</td>
<td>輸入產生置底rows函數,輸入為表內全部數據,預設為null</td>
</tr><tr>
<td><code>opt.kpColStyle</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應col style之物件,可設定各key欄之col style,預設各key值為undefined</td>
</tr><tr>
<td><code>opt.kpColSpan</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應col span之物件,可設定各key欄之col span,預設各key值為undefined</td>
</tr><tr>
<td><code>opt.kpCellRender</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應cell之渲染函數物件,預設各key值為undefined</td>
</tr><tr>
<td><code>opt.kpCellTooltip</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應cell之tooltip的html字串物件,於各cell處滑鼠移入時觸發,預設各key值為undefined</td>
</tr><tr>
<td><code>opt.defCellAlignH</code></td>
<td>String</td>
<td><code>'center'</code></td>
<td>No</td>
<td>輸入cell預設之左右對齊字串,預設為'center'</td>
</tr><tr>
<td><code>opt.kpCellAlignH</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應cell之左右對齊字串物件,預設各key值為defCellAlignH</td>
</tr><tr>
<td><code>opt.defCellEditable</code></td>
<td>Boolean</td>
<td><code>false</code></td>
<td>No</td>
<td>輸入cell預設之是否可編輯布林值,預設為false</td>
</tr><tr>
<td><code>opt.kpCellEditable</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入key對應cell之是否可編輯物件,預設各key值為defCellEditable</td>
</tr><tr>
<td><code>opt.kpConvertKeysWhenUploadData</code></td>
<td>Object</td>
<td><code>{}</code></td>
<td>No</td>
<td>輸入上傳Excel檔案時,當key轉會成對應新key值物件,預設{}</td>
</tr><tr>
<td><code>opt.rowsChange</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入rows change之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.rowClick</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入row click之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.rowDbClick</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入row double click之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.rowChange</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入row change之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.rowChecked</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入row checked之觸發事件,需使用kpHeadCheckBox開啟指定key的head與對應rows使用checkbox,預設為()=>{}</td>
</tr><tr>
<td><code>opt.rowMouseEnter</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入row mouseenter之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.rowMouseLeave</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入row mouseleave之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.cellClick</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入cell click之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.cellDbClick</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入cell double click之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.cellChange</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入cell change之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.cellMouseEnter</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入cell mouseenter之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.cellMouseLeave</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入cell mouseleave之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.filterChange</code></td>
<td>function</td>
<td><code>()=>{}</code></td>
<td>No</td>
<td>輸入filter change之觸發事件,預設為()=>{}</td>
</tr><tr>
<td><code>opt.autoFitColumn</code></td>
<td>Boolean</td>
<td><code>false</code></td>
<td>No</td>
<td>輸入當表格尺寸變更時自動調整欄寬布林值,預設false</td>
</tr><tr>
<td><code>opt.language</code></td>
<td>String</td>
<td><code>'en'</code></td>
<td>No</td>
<td>輸入指定語系字串,可選'en'、'zh-tw'、'zh-cn',預設為'en'</td>
</tr><tr>
<td><code>height</code></td>
<td>Number</td>
<td><code>300</code></td>
<td>No</td>
<td>表格高度,單位為px,預設300</td>
</tr><tr>
<td><code>filterall</code></td>
<td>String</td>
<td><code>''</code></td>
<td>No</td>
<td>輸入對全表數據進行過濾之字串,預設為''</td>
</tr></tbody>
</table>
<div class="container-overview"><div><p>
</div>
</div>
</article>
</section>
</div>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Dec 18 2025 22:45:47 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>
<script>prettyPrint();</script>
<script src="scripts/polyfill.js"></script>
<script src="scripts/linenumber.js"></script>
</body>
</html>