Skip to content

Commit

Permalink
Document supported table types (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim authored Jul 30, 2024
1 parent 44cebd0 commit 067dcf8
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion lib/kino/table.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,23 @@ defmodule Kino.Table do
@type column :: %{
:key => term(),
:label => String.t(),
optional(:type) => String.t(),
optional(:type) => type(),
optional(:summary) => %{String.t() => String.t()}
}

@typedoc """
The following types have meaning on the front-end:
* "date"
* "list"
* "number"
* "struct"
* "text"
* "uri"
"""
@type type :: String.t()

@type state :: term()

@doc """
Expand Down

0 comments on commit 067dcf8

Please sign in to comment.