Skip to content

Commit

Permalink
Debug revise issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Salceanu committed Sep 6, 2024
1 parent 17ff66f commit be44f66
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
14 changes: 11 additions & 3 deletions demos/tables/app2.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module App
# module App

using GenieFramework
using DataFrames
Expand All @@ -7,6 +7,10 @@ using DataFrames
StippleUI.Tables.set_default_rows_per_page(20)
StippleUI.Tables.set_max_rows_client_side(11_000)

# function paginate(dt, data)
# DataTable!(dt[]; data = data)
# end

@app begin
big_data = sort!(DataFrame(rand(1_000_000, 2), ["x1", "x2"]))::DataFrame # we only sort so that the changes are more visible when filtering and paginating

Expand All @@ -16,11 +20,15 @@ StippleUI.Tables.set_max_rows_client_side(11_000)
@out loading = false

@event dt1_request begin
@paginate(dt1, big_data)
# @paginate(dt1, big_data)
# paginate(dt1, big_data)
@show "called"
dt1 = DataTable!(dt1; data = big_data)
@show dt1
@push
end
end

@page("/", "ui2.jl")

end
# end
14 changes: 14 additions & 0 deletions demos/tables/rvz.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using GenieFramework
using DataFrames
# @genietools

# StippleUI.Tables.set_default_rows_per_page(20)
# StippleUI.Tables.set_max_rows_client_side(11_000)

# function paginate(dt, data)
# DataTable!(dt[]; data = data)
# end

big_data = sort!(DataFrame(rand(1_000_000, 2), ["x1", "x2"]))::DataFrame # we only sort so that the changes are more visible when filtering and paginating
dt1 = DataTable(big_data; server_side = true)
dt1 = DataTable!(dt1; data = big_data)

0 comments on commit be44f66

Please sign in to comment.