View Source LiveAdmin.Router (LiveAdmin v0.9.2)
Link to this section Summary
Functions
Defines a resource to be included in a LiveAdmin UI.
Defines a group of LiveAdmin resources that share a common prefix, and optionally, configuration.
Link to this section Functions
Defines a resource to be included in a LiveAdmin UI.
For each configured resource at path /foo
, the following routes will be added:
/foo
- List view/foo/new
- New record form/foo/:id/edit
- Update record form
Defines a group of LiveAdmin resources that share a common prefix, and optionally, configuration.
arguments
Arguments
path
- Defines a scope to be added to the router under which the resources will be grouped in a single live sessionopts
- Opts for the Admin UI added at configured path:title
- Title for the UI home view (Default: 'LiveAdmin'):components
- Component overrides that will be used for every resource in the group unless a resource is configurated to use its own overrides.