Created
January 20, 2026 12:06
-
-
Save sitefinitySDK/eed41eb92ac82c62345d3c96bd82c88e 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'; | |
| const customWidgetRegistry: WidgetRegistry = { | |
| widgets: { | |
| // ... your custom widgets | |
| }, | |
| filters: [ | |
| // ... your custom filters | |
| ] | |
| }; | |
| customWidgetRegistry.widgets = { | |
| ...defaultWidgetRegistry.widgets, | |
| ...customWidgetRegistry.widgets | |
| }; | |
| // Include default filters with custom filters | |
| customWidgetRegistry.filters = [ | |
| ...(defaultWidgetRegistry.filters || []), | |
| ...(customWidgetRegistry.filters || []) | |
| ]; | |
| export const widgetRegistry: WidgetRegistry = initRegistry(customWidgetRegistry); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment