|
|
## Object functions
|
|
|
## ajaxTable.php
|
|
|
|
|
|
\
|
|
|
**function ajaxTable(object: $sqlParams, \[object: $tableParams\]) {}**
|
|
|
|
|
|
> `ajaxTable($sqlParams, $tableParams) { $sqlParams = array_merge( array('db' => '', 'table' => '', 'columns' => '', 'offset' => '', 'limit' => ''), $sqlParams ); $tableParams = array_merge( array('caption' => '', 'columnNames' => $sqlParams['columns'], 'preview' => 3, 'expanded' => false, 'href' => true, 'totalrecords' => true, 'add' => true), $tableParams ); }`
|
|
|
|
|
|
## ajaxTables.js
|
|
|
|
|
|
### Object init
|
|
|
|
|
|
### Object functions
|
|
|
|
|
|
**get Dataset() { return this.element.dataset; }**
|
|
|
|
... | ... | @@ -12,4 +23,7 @@ Returns the index of the current Object |
|
|
\
|
|
|
**get Data() { return JSON.parse(this.data); }**
|
|
|
|
|
|
Returns the data of the current Object in JSON format |
|
|
\ No newline at end of file |
|
|
Returns the data of the current Object in JSON format
|
|
|
|
|
|
\
|
|
|
**eventReceiver(e, i) {}** |
|
|
\ No newline at end of file |