mix live_table.install (live_table v0.4.0)
View SourceInstalls and configures LiveTable in your Phoenix application.
This task configures all necessary files for LiveTable to work properly:
- Adds LiveTable configuration to config/config.exs
- Optionally configures Oban for CSV/PDF exports
Usage
$ mix live_table.install
With Oban for exports:
$ mix live_table.install --oban
This task assumes LiveTable dependency is already added to mix.exs.
Runtime Hooks
LiveTable uses Phoenix 1.8+ runtime colocated hooks which require no JavaScript configuration. The hooks are automatically registered when components render.