WidgetsFormForm APIToggle APIForm Toggle methodsfocus()focus() sets focus to a control focus(): void; Example form.getItem("toggle").focus();