Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • W wikiwfs.geo.uu.nl
  • Project information
    • Project information
    • Activity
    • Members
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Wiki
    • Wiki
  • Activity
Collapse sidebar
  • System Projects
  • wikiwfs
  • wikiwfs.geo.uu.nl
  • Wiki
  • ajaxTables

ajaxTables · Changes

Page history
Update ajaxTables authored Sep 30, 2021 by 3537390's avatar 3537390
Hide whitespace changes
Inline Side-by-side
ajaxTables.md
View page @ e1c6fe68
......@@ -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
Clone repository

Home
ajaxMenus
ajaxTables