|
## 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; }**
|
|
**get Dataset() { return this.element.dataset; }**
|
|
|
|
|
... | @@ -13,3 +24,6 @@ Returns the index of the current Object |
... | @@ -13,3 +24,6 @@ Returns the index of the current Object |
|
**get Data() { return JSON.parse(this.data); }**
|
|
**get Data() { return JSON.parse(this.data); }**
|
|
|
|
|
|
Returns the data of the current Object in JSON format
|
|
Returns the data of the current Object in JSON format
|
|
|
|
|
|
|
|
\
|
|
|
|
**eventReceiver(e, i) {}** |
|
|
|
\ No newline at end of file |