LiveTable helps you build realtime datatables for the web
See the codeA Phoenix LiveView component library for building dynamic, interactive data tables with real-time updates.

Live Demo (1M+ records) | Advanced Demo | Advanced Demo Source
1. Add dependency:
# mix.exs
{:live_table, "~> 0.4.2"}
2. Install:
mix deps.get && mix live_table.install
3. Create a table:
# lib/my_app_web/live/product_live/index.ex
defmodule MyAppWeb.ProductLive.Index do
use MyAppWeb, :live_view
use LiveTable.LiveResource, schema: MyApp.Product
def fields do
[
id: %{label: "ID", sortable: true},
name: %{label: "Name", sortable: true, searchable: true},
price: %{label: "Price", sortable: true}
]
end
def filters do
[
in_stock: Boolean.new(:quantity, "in_stock", %{
label: "In Stock",
condition: dynamic([p], p.quantity > 0)
})
]
end
end
4. Render it:
<%# lib/my_app_web/live/product_live/index.html.heex %>
<.live_table fields={fields()} filters={filters()} options={@options} streams={@streams} />
LiveTable includes usage rules for AI assistants to provide accurate code suggestions.
MIT License. See LICENSE for details.
Elixir
100.0%
LiveTable helps you build realtime datatables for the web
See the codeA Phoenix LiveView component library for building dynamic, interactive data tables with real-time updates.

Live Demo (1M+ records) | Advanced Demo | Advanced Demo Source
1. Add dependency:
# mix.exs
{:live_table, "~> 0.4.2"}
2. Install:
mix deps.get && mix live_table.install
3. Create a table:
# lib/my_app_web/live/product_live/index.ex
defmodule MyAppWeb.ProductLive.Index do
use MyAppWeb, :live_view
use LiveTable.LiveResource, schema: MyApp.Product
def fields do
[
id: %{label: "ID", sortable: true},
name: %{label: "Name", sortable: true, searchable: true},
price: %{label: "Price", sortable: true}
]
end
def filters do
[
in_stock: Boolean.new(:quantity, "in_stock", %{
label: "In Stock",
condition: dynamic([p], p.quantity > 0)
})
]
end
end
4. Render it:
<%# lib/my_app_web/live/product_live/index.html.heex %>
<.live_table fields={fields()} filters={filters()} options={@options} streams={@streams} />
LiveTable includes usage rules for AI assistants to provide accurate code suggestions.
MIT License. See LICENSE for details.
Elixir
100.0%