hansihe

hansihe

DataTable - Simple and flexible DataTable component for LiveView

DataTable is a easy to use, simple and flexible Data Table for LiveView.

Code used for the example, under 60 LOC

I have been tweaking this and using it for admin interfaces for various projects for a while now, and I decided to finally get around to polishing it up and publishing it properly. Hope this can be useful for others as well :slight_smile:

Some feature highlights:

  • Filtering - Apply filters at the top. Customize which fields are filterable.
  • Sorting - Click headers to cycle sorting.
  • Expandable rows - Optionally make rows expandable, show more context for the row.
  • Pagination
  • Row selection - Perform custom actions on multiple rows.
  • Pluggable Sources - Data is fetched from the DataTable.Source behaviour, write your own data sources
    • Ecto support - Built in first-class Ecto support implemented as a Source.
  • Persistent navigation - Optionally persist table state to query string
  • Theming - Customize everything to match your application, including markup
    • Tailwind theme - You get a decent Tailwind-based theme out of the box

All of the above is available in an easy to use LiveComponent.

https://github.com/hansihe/data_table

Where Next?

Popular in Announcing Top

bryanjos
Hi, I just published version 0.23.0 of Elixirscript. https://github.com/bryanjos/elixirscript/blob/master/CHANGELOG.md Most of the chan...
New
danschultzer
In short Plug n’ play OAuth 2.0 provider library. Just set up a resource owner schema with Ecto (your user schema), install the dependen...
New
versilov
Could not wait for the missing Elixir ML libraries to appear, so, I wrote one myself, taking https://github.com/sdwolfz/exlearn as a foun...
New
josevalim
EDIT: since Ecto 3.0 final version is out, this post was amended to use the final versions in the instructions below. Hi everyone, We a...
New
tfwright
After working on it for a couple of months and using it in production for most of that time, today I’ve released LiveAdmin, a LiveView ba...
New
kip
Image is an image processing library for Elixir. It is based upon the fabulous vix library that provides a libvips wrapper for Elixir. I...
622 19515 194
New
zoltanszogyenyi
Hey everyone :waving_hand: Excited to join this forum - I am one of the founders and current project maintainers of a popular and open-s...
New

Other popular topics Top

KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36689 110
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New

We're in Beta

About us Mission Statement