Skip to content

Commit

Permalink
Add support for displaying AgTables entities in notebook platforms (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfadson committed Jun 14, 2024
1 parent 28eacef commit 1aaa9a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "AgTables"
uuid = "de8a86c3-a64b-47c8-8ca2-357579be7910"
version = "2.1.1"
version = "2.1.2"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
8 changes: 8 additions & 0 deletions src/AgTables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ function Base.show(io::IO, h::AGTable)
return println(io, "AgTables.AGTable($(h.name))")
end

function Base.show(io::IO, m::MIME"text/html", h::AGTable)
return write(io, string(h))
end

"""
ag_table(data::Vector{T}, column_defs::AbstractColumnDef...; kw...) -> AGTable
Expand Down Expand Up @@ -144,6 +148,10 @@ function Base.show(io::IO, h::AGPanel)
return println(io, "AgTables.AGPanel($(h.name))")
end

function Base.show(io::IO, m::MIME"text/html", h::AGPanel)
return write(io, string(h))
end

"""
ag_panel(tables::AGTable...; kw...) -> AGPanel
Expand Down

0 comments on commit 1aaa9a6

Please sign in to comment.