KnockoutJS Nested DataTable is a KnockoutJS custom component which is easy to use, custom element, nesting tables and extensible. All default dataTable functionalities such as sorting, pagination, search etc are applicable in this component also.
- Optionally: to install with bower, use:
bower install --save ko-nested-datatable
- Link scripts:
<link href="//cdn.datatables.net/1.10.5/css/jquery.dataTables.css" rel="stylesheet" />
<script type="text/javascript" data-main="require.config.js" src="bower_components/requirejs/require.js"></script>
- KnockoutJS Nested DataTable custom element:
<ko-nested-table params="
data: tableData,
outerTableConfig: outerDefaults,
innerTableConfig: innerDefaults">
</ko-nested-table>
tableData, outerDefaults and innerDefaults are the properties on page view modal.
- Download all dependencies using bower:
bower install
Key | Values | Description |
---|---|---|
data | Object | All row data supplied to custom element |
outerTableConfig | Object | Outer DataTable Configuration |
innerTableConfig | Object | Inner DataTable Configuration |
Shailendra Kumar
Copyright © 2015 Shailendra Kumar.
KnockoutJS Nested DataTable is under MIT license - http://www.opensource.org/licenses/mit-license.php