Created
December 17, 2025 12:52
-
-
Save sitefinitySDK/7bd5b242fe2a467d626efd4c0532e992 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { WidgetRegistry, initRegistry, defaultWidgetRegistry } from '@progress/sitefinity-nextjs-sdk'; | |
| import { Script } from './widgets/script/script'; | |
| import { ScriptEntity } from './widgets/script/script.entity'; | |
| const customWidgetRegistry: WidgetRegistry = { | |
| widgets: { | |
| 'Script': { | |
| componentType: Script, | |
| entity: ScriptEntity, | |
| ssr: true, | |
| editorMetadata: { | |
| Title: 'Script', | |
| Category: 'Content', | |
| Section: 'Basic', | |
| EmptyIconText: 'Set JavaScript', | |
| EmptyIconAction: 'Edit', | |
| IconName: 'code' | |
| } | |
| } | |
| } | |
| }; | |
| customWidgetRegistry.widgets = { | |
| ...defaultWidgetRegistry.widgets, | |
| ...customWidgetRegistry.widgets | |
| }; | |
| export const widgetRegistry: WidgetRegistry = initRegistry(customWidgetRegistry); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment