... | @@ -3,7 +3,7 @@ |
... | @@ -3,7 +3,7 @@ |
|
\
|
|
\
|
|
**function ajaxTable(object: $sqlParams, \[object: $tableParams\]) {}**
|
|
**function ajaxTable(object: $sqlParams, \[object: $tableParams\]) {}**
|
|
|
|
|
|
```
|
|
```plaintext
|
|
ajaxTable($sqlParams, $tableParams) {
|
|
ajaxTable($sqlParams, $tableParams) {
|
|
|
|
|
|
$sqlParams = array_merge(
|
|
$sqlParams = array_merge(
|
... | @@ -33,7 +33,7 @@ ajaxTable($sqlParams, $tableParams) { |
... | @@ -33,7 +33,7 @@ ajaxTable($sqlParams, $tableParams) { |
|
|
|
|
|
### Object init
|
|
### Object init
|
|
|
|
|
|
```
|
|
```plaintext
|
|
<table class="table table-hover table-ajax
|
|
<table class="table table-hover table-ajax
|
|
data-ajax="" string
|
|
data-ajax="" string
|
|
data-url="" string
|
|
data-url="" string
|
... | @@ -51,21 +51,21 @@ ajaxTable($sqlParams, $tableParams) { |
... | @@ -51,21 +51,21 @@ ajaxTable($sqlParams, $tableParams) { |
|
></table>
|
|
></table>
|
|
```
|
|
```
|
|
|
|
|
|
```
|
|
```plaintext
|
|
element.dataset.ajax = String: "table";
|
|
element.dataset.ajax = String: "table";
|
|
element.dataset.url = String: "https://wikiwfs.geo.uu.nl/api";
|
|
element.dataset.url = String: "https://wikiwfs.geo.uu.nl/api";
|
|
element.dataset.db = String: "llg";
|
|
element.dataset.db = String: "llg";
|
|
element.dataset.table = String: "llg_nl_boreholeheader";
|
|
element.dataset.table = String: "llg_nl_boreholeheader";
|
|
element.dataset.columns = String: "*" || Array: "['yeargroup,year,names,n_boreholes,minxco,maxxco,minyco,maxyco']";
|
|
element.dataset.columns = String: "*" || Array: "['yeargroup,year,names,n_boreholes,minxco,maxxco,minyco,maxyco']"; // default: "*"
|
|
|
|
|
|
element.dataset.tableCaption = String: "";
|
|
element.dataset.tableCaption = String: "";
|
|
element.dataset.tablePreview = Int: "" / 3;
|
|
element.dataset.tablePreview = Int: ""; // default: 3
|
|
element.dataset.tableExpanded = Bool: true/false;
|
|
element.dataset.tableExpanded = Bool: true/false; // default: false
|
|
element.dataset.tableAdd = Bool: true/false;
|
|
element.dataset.tableAdd = Bool: true/false; // default: false
|
|
element.dataset.tableColumnNames = String: ""/null;
|
|
element.dataset.tableColumnNames = String: ""; // default: ""
|
|
element.dataset.tableColumnSortable = Bool: true/false || Array: "['true,true,false,false,true,true,true,true']";
|
|
element.dataset.tableColumnSortable = Bool: true/false || Array: "['true,true,false,false,true,true,true,true']"; // default: true
|
|
element.dataset.tableRowHref = Bool: true/false;
|
|
element.dataset.tableRowHref = Bool: true/false; // default: true
|
|
element.dataset.tableRowEvents = Array: "['mouseover,mouseout,mousedown,mouseup,click']";
|
|
// element.dataset.tableRowEvents = Array: "['mouseover,mouseout,mousedown,mouseup,click']";
|
|
```
|
|
```
|
|
|
|
|
|
### Object functions
|
|
### Object functions
|
... | | ... | |