View Source LiveAdmin.Resource (LiveAdmin v0.12.1)
API for managing Ecto schemas and their individual record instances used internally by LiveAdmin.
use LiveAdmin.Resource
This is required in any module that should act as a LiveAdmin Resource. If the module is not an Ecto schema, then the
:schema
option must be passed. Using this module will create a live_admin_config module variable and a function to query it, live_admin_config/0.
Link to this section Summary
Functions
Configure a module to act as a LiveAdmin resource
Link to this section Functions
Configure a module to act as a LiveAdmin resource
In addition to global options, also accepts schema
in case the resource
is not also an Ecto schema.