https://github.com/genieframework/stippletable.jl
A component enhancing the Table component from StippleUI with support for for server-side pagination and filtering
https://github.com/genieframework/stippletable.jl
Last synced: 6 months ago
JSON representation
A component enhancing the Table component from StippleUI with support for for server-side pagination and filtering
- Host: GitHub
- URL: https://github.com/genieframework/stippletable.jl
- Owner: GenieFramework
- License: mit
- Created: 2024-09-06T19:45:18.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-03T08:09:01.000Z (over 1 year ago)
- Last Synced: 2025-06-03T21:22:35.537Z (about 1 year ago)
- Language: Julia
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# StippleTable
This component enhances the Table component from StippleUI with support for for server-side pagination and filtering.
## Installation
To install the most recent released version of package:
```
pkg> add StippleTable
```
## Usage
Create a simple `app.jl` script
```julia
module App
using GenieFramework
using DataFrames
using StippleTable
@genietools
StippleUI.Tables.set_default_rows_per_page(20)
StippleUI.Tables.set_max_rows_client_side(11_000)
const big_data = sort!(DataFrame(rand(1_000_000, 2), ["x1", "x2"]))::DataFrame
@app begin
@out dt1 = DataTable(big_data; server_side = true)
@out loading = false
@out dt2 = DataTable(big_data)
end
@event dt1_request begin
loading = true
dt1 = @paginate(dt1, big_data)
@push
loading = false
end
ui() = """
"""
@page("/", ui)
end
```