Created
January 20, 2026 12:10
-
-
Save sitefinitySDK/ff30f03bf5d79de8e531d6841a7815c4 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 { myCustomFiltering } from './components/custom-filters/my-custom-filtering'; | |
| const customWidgetRegistry: WidgetRegistry = { | |
| widgets: { | |
| // your custom widgets here | |
| }, | |
| filters: [ | |
| myCustomFiltering | |
| ] | |
| }; | |
| 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