We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rendering an array of DataTable changes the dict content and adds extra fields. This is a problem when running a v-for loop to show multiple tables.
DataTable
v-for
MWE:
using GenieFramework @genietools @app begin @out table = DataTable() @out tablearray = [DataTable(), DataTable()] end ui() = "{{table}}<br>{{tablearray}}" @page("/", ui)
What the page shows:
{ "data": [], "columns": [] } [ { "data": { "columns": [], "colindex": { "lookup": {}, "names": [] }, "metadata": null, "colmetadata": null, "allnotemetadata": true }, "opts": { "addid": false, "idcolumn": "ID", "columns": null, "columnspecs": {} } }, { "data": { "columns": [], "colindex": { "lookup": {}, "names": [] }, "metadata": null, "colmetadata": null, "allnotemetadata": true }, "opts": { "addid": false, "idcolumn": "ID", "columns": null, "columnspecs": {} } } ]
This can be solved with a specific renderer:
function Stipple.render(tables::Vector{T}) where {T<:DataTable} [StippleUI.Tables.data(t) for t in tables] end
The text was updated successfully, but these errors were encountered:
Even better
Stipple.render(tables::Vector{<:DataTable}) = render.(tables)
I shall add that to Tables.
Sorry, something went wrong.
No branches or pull requests
Rendering an array of
DataTable
changes the dict content and adds extra fields. This is a problem when running av-for
loop to show multiple tables.MWE:
What the page shows:
This can be solved with a specific renderer:
The text was updated successfully, but these errors were encountered: