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