API Reference > ui-framework > Widget > WidgetHost > getSingleWidgetDef getSingleWidgetDef Method If there is only one Widget in the Panel, gets the single WidgetDef. getSingleWidgetDef(): undefined | WidgetDef Returns - undefined | WidgetDef The single WidgetDef if there is only one Widget; otherwise, undefined is returned. Defined in ui/framework/src/ui-framework/widgets/WidgetHost.tsx Line 49 Last Updated: 11 June, 2024