SelectoComponents

Tailwind based UI for selecto

Provides main components: SelectoComponents.ViewSelector, SelectoComponents.AggregateTable and SelectoComponents.DetailTable

ViewSelector is a live component that creates a control panel to build a query.

AggregateTable and DetailTable are live compoents to display the results of that query.

See the live views in selecto_test for an example of how to setup. Documentaiton will be added once the API is stabilized.

Plans for '0.5.0'

Plans for later

This system is inspired by a system I wrote starting in 2004 and currently has all the features listed above except pub-sub and infinite scroll.

Installation

If available in Hex, the package can be installed by adding selecto_components to your list of dependencies in mix.exs:

def deps do
[
{:selecto_components, "~> 0.1.0"}
]
end

Additionally:

You will need to add alpinejs and Tailwind to your app, and configure tailwind to look at *ex files in selecto_components.

You will need to include a Hook in your app.js for the drag and drop

const PushEventHook = {
mounted() {
window.PushEventHook = this
},
destroyed() {
window.PushEventHook = null
}
};

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/selecto_components.