Skip to content
Snippets Groups Projects
Unverified Commit 95d4b5c2 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Add dbp-data-table-view usage documentation and some other fixes

parent 516d5590
No related branches found
No related tags found
No related merge requests found
Pipeline #45693 failed
# DataTableView Web Component # DataTableView Web Component
# Usage ## Usage
```html ```html
<dbp-data-table-view></dbp-data-table-view> <dbp-data-table-view></dbp-data-table-view>
<script type="module" src="node_modules/@dbp-toolkit/data-table-view/dist/dbp-data-table-view.js"></script>
``` ```
# Attributes Or directly via CDN:
```html
<dbp-data-table-view></dbp-data-table-view>
<script type="module" src="https://unpkg.com/@dbp-toolkit/data-table-view@0.2.2/dist/dbp-data-table-view.js"></script>
```
## Attributes
- `lang` (optional, default: `de`): set to `de` or `en` for German or English - `lang` (optional, default: `de`): set to `de` or `en` for German or English
- example `<dbp-data-table-view lang="de"></dbp-data-table-view>` - example `<dbp-data-table-view lang="de"></dbp-data-table-view>`
- `paging` (optional, required to let datatable do the paging of loaded rows) - `paging` (optional, required to let datatable do the paging of loaded rows)
...@@ -23,7 +32,8 @@ ...@@ -23,7 +32,8 @@
- example `<dbp-data-table-view default-order='[1,"asc"]'></pu-data-table-view>` - example `<dbp-data-table-view default-order='[1,"asc"]'></pu-data-table-view>`
- example `<dbp-data-table-view default-order='[[0,"desc"],[2,"asc"]]'></pu-data-table-view>` - example `<dbp-data-table-view default-order='[[0,"desc"],[2,"asc"]]'></pu-data-table-view>`
# Local development ## Local development
```bash ```bash
# get the source # get the source
git clone git@gitlab.tugraz.at:dbp/web-components/toolkit.git git clone git@gitlab.tugraz.at:dbp/web-components/toolkit.git
......
{ {
"name": "@dbp-toolkit/data-table-view", "name": "@dbp-toolkit/data-table-view",
"homepage": "https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/data-table-view", "homepage": "https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/data-table-view",
"version": "0.2.2", "version": "0.2.3",
"main": "src/index.js", "main": "src/index.js",
"license": "LGPL-2.1-or-later", "license": "LGPL-2.1-or-later",
"repository": { "repository": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment