Returns null
if no matching Widget exists.
Params
id
(String) - the ID of the widget.
Returns
Widget
or null
Accesses a widget by its id
.
page = Scrivito.Obj.root();
widgetId0 = page.widgets()[0].id();
page.widget(widgetId0).objClass();
Returns null
if no matching Widget exists.
Params
id
(String) - the ID of the widget.Returns
Widget
or null