Genie Discord forum

I want to display a DataFrames.DataTable object in HTML with pagination view. How can I accomplish it with the quasar framework? (I'm unable to get the q-table div to work.) TIA

We have several examples on displaying data tables in apps with a reactive UI. For instance, the Iris Clustering demo

If your use case does not fit these examples, please provide a MWE and I'll help you out

Thanks, I got the DataTable working. However, there's another issue I'm trying to work through.
I’m trying to create a Genie application in which the plots and DataTable will change with the change in the dataset. I’m unable to figure out how to make the dataset generic so that it can be used by all the @out variables. A sample code snippet is as follows:
@app begin
@out pca_data::R{DataTables.DataTable} = dataset("datasets", "iris") |> DataTables.DataTable
@out data_pagination = StippleUI.Tables.DataTablePagination(rows_per_page=15)
...
@onchange dataset_name begin
if dataset_name == "Iris"
pca_data = dataset("datasets", "iris") |> DataTables.DataTable
elseif dataset_name == "Motor Trend Car Road Tests"
pca_data = dataset("datasets", "mtcars") |> DataTables.DataTable
else
pca_data = dataset("datasets", "Titanic") |> DataTables.DataTable
end
end
end
I’d like to replace the dataset("datasets", <dataset_name>)
with a reactive element.
Is there another way to go about it than the reactive model as done in the IrisClustering example?

What is exactly the problem? Is the selector dataset_name not working, or the table not updating?
I think you might be using the wrong type for the table. The type of the data table is GenieFramework.DataTable, or just DataTable as it is already exported when using GenieFramework.