... | ... | @@ -32,6 +32,7 @@ ajaxTable($sqlParams, $tableParams) { |
|
|
```
|
|
|
|
|
|
**HTML**
|
|
|
|
|
|
```plaintext
|
|
|
<table class="table table-hover table-ajax"
|
|
|
data-ajax="" String
|
... | ... | @@ -51,6 +52,7 @@ ajaxTable($sqlParams, $tableParams) { |
|
|
```
|
|
|
|
|
|
**JavaScript**
|
|
|
|
|
|
```plaintext
|
|
|
element.dataset.ajax = String: "table";
|
|
|
element.dataset.url = String: "https://wikiwfs.geo.uu.nl/api";
|
... | ... | @@ -70,19 +72,21 @@ element.dataset.tableRowHref = Bool: true/false; // default: true |
|
|
|
|
|
## Object functions
|
|
|
|
|
|
**get Dataset() { return this.element.dataset; }**
|
|
|
**get Dataset() { return this.element.dataset; }**\
|
|
|
Returns the dataset of the current Object.element
|
|
|
|
|
|
\
|
|
|
**get Index() { return this.index; }**
|
|
|
**get Index() { return this.index; }**\
|
|
|
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
|
|
|
|
|
|
\
|
|
|
**eventTransmitter(string: event, int: i) {}**
|
|
|
|
|
|
Transmit events to all elements that have current Object as master
|
|
|
|
|
|
\
|
|
|
**eventReceiver(string: event, int: i) {}** |
|
|
\ No newline at end of file |