... | ... | @@ -3,6 +3,7 @@ |
|
|
\
|
|
|
**function ajaxTable(object: $sqlParams, \[object: $tableParams\]) {}**
|
|
|
|
|
|
**PHP**
|
|
|
```plaintext
|
|
|
ajaxTable($sqlParams, $tableParams) {
|
|
|
|
... | ... | @@ -33,6 +34,7 @@ ajaxTable($sqlParams, $tableParams) { |
|
|
|
|
|
### Object init
|
|
|
|
|
|
**HTML**
|
|
|
```plaintext
|
|
|
<table class="table table-hover table-ajax
|
|
|
data-ajax="" String
|
... | ... | @@ -51,6 +53,7 @@ ajaxTable($sqlParams, $tableParams) { |
|
|
></table>
|
|
|
```
|
|
|
|
|
|
**JavaScript**
|
|
|
```plaintext
|
|
|
element.dataset.ajax = String: "table";
|
|
|
element.dataset.url = String: "https://wikiwfs.geo.uu.nl/api";
|
... | ... | |