Backoffice Entry Point
The Backoffice Entry Point extension type is used to run some JavaScript code at startup.
{
"name": "Name of your package",
"alias": "My.Package",
"extensions": [
{
"type": "backofficeEntryPoint",
"alias": "My.EntryPoint",
"js": "/App_Plugins/YourFolder/index.js"
}
]
}import type { UmbEntryPointOnInit } from '@umbraco-cms/backoffice/extension-api';
/**
* Perform any initialization logic when the Backoffice starts
*/
export const onInit: UmbEntryPointOnInit = (host, extensionRegistry) => {
// Your initialization logic here
}
/**
* Perform any cleanup logic when the Backoffice and/or the package is unloaded
*/
export const onUnload: UmbEntryPointOnUnload = (host, extensionRegistry) => {
// Your cleanup logic here
}Examples
Register additional UI extensions in the entry point file
Register global CSS
Type IntelliSense
What's next?
Extension TypesApp Entry PointLast updated
Was this helpful?