interface

MountAdminOptions

Public interface MountAdminOptions from @riducms/admin.

Properties

PropertyTypeDescription
targetElementExisting DOM element that receives the Ridu admin application.
clientFactory() => RiduClient<Config>Creates the generated, application-specific Fetch client.
adminBasePathstring | undefinedRoute prefix used when the admin is not mounted at /admin.
rowLabelsReadonly<Record<`app:${string}`, RegisteredRowLabel>> | undefinedCustom array or block row headings selected by Go field.Admin{RowLabel: field.Component("app:name")}.
pluginsreadonly AdminPlugin[] | undefinedStatically paired packaged plugins, including fields and routes.
messagesPluginMessageCatalog | undefinedInterface messages made with defineAdminMessages; refer to them as app:messageName.
languagesreadonly TranslationLanguage[] | undefinedStatically imported catalogs available to the Go-configured admin languages.
routesreadonly AdminRoute[] | undefinedAuthenticated admin routes contributed by this package.
dashboardPanelsreadonly AdminDashboardPanel[] | undefinedPanels composed into or replacing the authenticated dashboard.
loginreadonly AdminLoginComponent[] | undefinedComponents composed around or replacing the sign-in screen.
accountreadonly AdminAccountComponent[] | undefinedComponents composed around or replacing the framework account screens.
navigationreadonly AdminNavigationComponent[] | undefinedComponents composed around or replacing the framework navigation.
logoutButtonAdminLogoutButton | undefinedReplaces the default sign-out control in the navigation footer.
coreViewsreadonly AdminCoreView[] | undefinedWraps or replaces framework collection, global, and not-found views.
brandingreadonly AdminBrandComponent[] | undefinedReplaces framework-owned brand graphics at exact shell surfaces.
shellSlotsreadonly AdminShellSlot[] | undefinedAdds components to explicit global shell slots.
providersreadonly AdminProvider[] | undefinedWraps the admin in statically ordered Svelte context providers.
listCellRenderersreadonly AdminListCellRenderer[] | undefinedCollection list cells rendered for exact collection/field pairs.
listResultsRenderersreadonly AdminListResultsRenderer[] | undefinedReplace only the results layout; Ridu retains list loading, controls and pagination.
documentActionsreadonly AdminDocumentAction[] | undefinedActions rendered alongside framework-owned document actions.
documentViewsreadonly AdminDocumentView[] | undefinedRead-only or operational views rendered beside Edit and API.
fieldEditorsReadonly<Record<`app:${string}`, RegisteredFieldEditor>> | undefinedCustom field inputs selected by Go field.Admin{Editor: field.Component("app:name")}. Use defineFieldEditor for each entry.

Full signature

interface MountAdminOptions<Config extends RiduConfigShape> { ... }

Source admin/src/index.ts:14

Methods