RuntimePluginAPI #
What setup(api) of a Runtime Plugin receives: methods to place components in outlets and to reach the Vue app and the router.
Fields #
prependToOutlet(outlet: 'doc' | 'layout.header' | 'layout.header.start' | 'layout.header.end' | 'layout.sidebar' | 'layout.footer' | 'doc.under-title' | 'doc.toc', item: OutletItemInput): void
Places a component before the theme's own content of an outlet.
appendToOutlet(outlet: 'doc' | 'layout.header' | 'layout.header.start' | 'layout.header.end' | 'layout.sidebar' | 'layout.footer' | 'doc.under-title' | 'doc.toc', item: OutletItemInput): void
Places a component after the theme's own content of an outlet.
vueApp(handler: RuntimePluginHandler<App<any>>): void
Gets the Vue app, for example to install a Vue plugin.
router(handler: RuntimePluginHandler<Router>): void
Gets the router, for example to add a navigation hook.
Full type signature
TypeScript
interface RuntimePluginAPI {
prependToOutlet: (outlet: 'doc' | 'layout.header' | 'layout.header.start' | 'layout.header.end' | 'layout.sidebar' | 'layout.footer' | 'doc.under-title' | 'doc.toc', item: OutletItemInput) => void
appendToOutlet: (outlet: 'doc' | 'layout.header' | 'layout.header.start' | 'layout.header.end' | 'layout.sidebar' | 'layout.footer' | 'doc.under-title' | 'doc.toc', item: OutletItemInput) => void
vueApp: (handler: RuntimePluginHandler<App<any>>) => void
router: (handler: RuntimePluginHandler<Router>) => void
}

Comments