View Source LiveAdmin.Router (LiveAdmin v0.8.0)

Link to this section Summary

Functions

Defines a route that can be used to access the Admin UI for all configured resources.

Link to this section Functions

Link to this function

build_session(conn, resources, title)

View Source
Link to this function

generate_resource_key(resource)

View Source
Link to this macro

live_admin(path, opts)

View Source (macro)

Defines a route that can be used to access the Admin UI for all configured resources.

arguments

Arguments

  • :path - Defines a scope to be added to the router under which the resources will be grouped in a single live session
  • :opts - Opts for the Admin UI added at configured path
    • :resources - A list of Ecto schema modules to be exposed in the UI
    • :title - Title for the UI home view (Default: 'LiveAdmin')
Link to this function

on_mount(atom, params, map, socket)

View Source