JavaScript APIuiNamespacesinputFunctionstoggleOn this pagetoggle() toggle(name, options?): InputBase<boolean> Parameters ParameterTypenamestringoptions?IInputInitOptions<boolean> Returns InputBase<boolean> Source ui.ts:903