interface
MountAdminOptions
Public interface MountAdminOptions from @riducms/admin.
Properties
| Property | Type | Description |
|---|---|---|
target | Element | Existing DOM element that receives the Ridu admin application. |
clientFactory | () => RiduClient< | Creates the generated, application-specific Fetch client. |
adminBasePath | string | | Route prefix used when the admin is not mounted at /admin. |
rowLabels | Readonly< | Custom array or block row headings selected by Go field.Admin{RowLabel: field.Component("app:name")}. |
plugins | readonly AdminPlugin[] | | Statically paired packaged plugins, including fields and routes. |
messages | PluginMessageCatalog | | Interface messages made with defineAdminMessages; refer to them as app:messageName. |
languages | readonly TranslationLanguage[] | | Statically imported catalogs available to the Go-configured admin languages. |
routes | readonly AdminRoute[] | | Authenticated admin routes contributed by this package. |
dashboardPanels | readonly AdminDashboardPanel[] | | Panels composed into or replacing the authenticated dashboard. |
login | readonly AdminLoginComponent[] | | Components composed around or replacing the sign-in screen. |
account | readonly AdminAccountComponent[] | | Components composed around or replacing the framework account screens. |
navigation | readonly AdminNavigationComponent[] | | Components composed around or replacing the framework navigation. |
logoutButton | AdminLogoutButton | | Replaces the default sign-out control in the navigation footer. |
coreViews | readonly AdminCoreView[] | | Wraps or replaces framework collection, global, and not-found views. |
branding | readonly AdminBrandComponent[] | | Replaces framework-owned brand graphics at exact shell surfaces. |
shellSlots | readonly AdminShellSlot[] | | Adds components to explicit global shell slots. |
providers | readonly AdminProvider[] | | Wraps the admin in statically ordered Svelte context providers. |
listCellRenderers | readonly AdminListCellRenderer[] | | Collection list cells rendered for exact collection/field pairs. |
listResultsRenderers | readonly AdminListResultsRenderer[] | | Replace only the results layout; Ridu retains list loading, controls and pagination. |
documentActions | readonly AdminDocumentAction[] | | Actions rendered alongside framework-owned document actions. |
documentViews | readonly AdminDocumentView[] | | Read-only or operational views rendered beside Edit and API. |
fieldEditors | Readonly< | Custom field inputs selected by Go field.Admin{Editor: field.Component("app:name")}. Use defineFieldEditor for each entry. |
Full signature
interface MountAdminOptions<Config extends RiduConfigShape> { ... }Methods
MountAdminOptions.clientFactory()Creates the generated, application-specific Fetch client.