どの最寄りのjQuery近似結のDataTable?
-
19-09-2019 - |
質問
私の最高の優先順位を進化およびインライン編集する。がその場で発音を確認することが進化(DataTables)およびインライン編集jqGridがない。支援のためのjQuery UIのテーマはできるので、低い優先されます。
更新:以下に例を示しますか私は想像の解決が似て:
<table summary="A table full of example tabular data">
<caption>My Table to Progressively Enhance</caption>
<thead>
<tr>
<th id="colA">Column A</th>
<th id="colB">Column B</th>
</tr>
</thead>
<tbody>
<tr>
<td headers="colA">foo</td>
<td headers="colB">bar</td>
</tr>
<tr>
<td headers="colA">argle</td>
<td headers="colB">bargle</td>
</tr>
</tbody>
</table>
… insert jquery datatable stuff here …
<script type="text/javascript">
progressivelyEnhanceMyTable();
</script>
解決 2
最新のリリースjqGridまから取得 tableToGrid
, し、解決にグリッドからのマークアップ問題があります。
他のヒント
と思い jqGrid れても良いです。
更新:
利用できるようなコードでこの変換テーブルをjavascriptオブジェクト
var $table = $('table'); // select your table
var data = []; // instantiate the data array
$('tr', $table).each(function(i, item){ // loop through the table rows
obj = {} // create the object to append to the data array
obj.name = $('td:eq(0)',$(this)).text().trim();
obj.desc = $('td:eq(1)',$(this)).text().trim();
data += obj; // add the object to the array
});
そしてタックでの 荷重配列データの例
for(var i=0;i<=data.length;i++) $("#datagrid").addRowData(i+1,data[i]);
あのプラグインdatatablesという jquery-datatables-編集可能 るインライン編集する。
所属していません StackOverflow