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