API Reference > ui-framework > Widget > WidgetHost > findWidgetDef findWidgetDef Method Finds a WidgetDef with a given Id. findWidgetDef(id: string): undefined | WidgetDef Parameter Type Description id string Id of the WidgetDef to find Returns - undefined | WidgetDef The WidgetDef if found; otherwise, undefined is returned. Defined in ui/framework/src/ui-framework/widgets/WidgetHost.tsx Line 60 Last Updated: 12 June, 2024