Kino.DataTable.new

You're seeing just the function new, go back to Kino.DataTable module for more information.

Specs

new(Enum.t(), keyword()) :: t()

Starts a widget process with enumerable tabular data.

Options

  • :keys - a list of keys to include in the table for each record. The order is reflected in the rendered table. For tuples use 0-based indices. Optional.

  • :sorting_enabled - whether the widget should support sorting the data. Sorting requires traversal of the whole enumerable, so it may not be desirable for lazy enumerables. Defaults to true if data is a list and false otherwise.

  • :show_underscored - whether to include record keys starting with underscore. This option is ignored if :keys is also given. Defaults to false.