View Source LiveAdmin.Router (LiveAdmin v0.5.1)

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, components)

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')
    • :components - A list of UI level component overrides
      • :home - Override for the view loaded at the base path, before the user navigates to a specific resource
Link to this function

on_mount(atom, params, map, socket)

View Source