Class: Toybox.WatchUi.CheckboxMenu
- Inherits:
-
Toybox.WatchUi.Menu2
Overview
A representation of a check box menu.
A CheckboxMenu is a specialized Menu2 View that presents the user with a list of check box options. After an option is selected, the registered onSelect() method will be called. While a CheckboxMenu can be generated programmatically, they should generally be created as a resource.
A CheckboxMenu is pushed using pushView(), which provides a Menu2InputDelegate as the input delegate.
See Also:
Note:
The look and feel of a CheckboxMenu is device-specific.
Instance Method Summary collapse
-
addItem(item as WatchUi.CheckboxMenuItem) as Void
Add a CheckboxMenuItem to a CheckboxMenu.
-
initialize(options as { :title as Lang.String or Lang.Symbol or WatchUi.Drawable, :focus as Lang.Number, :icon as Graphics.BitmapType or WatchUi.Drawable or Lang.Symbol } or Null)
Constructor.
Instance Method Details
addItem(item as WatchUi.CheckboxMenuItem) as Void
Add a CheckboxMenuItem to a CheckboxMenu.
initialize(options as { :title as Lang.String or Lang.Symbol or WatchUi.Drawable, :focus as Lang.Number, :icon as Graphics.BitmapType or WatchUi.Drawable or Lang.Symbol } or Null)
Constructor
Note:
The :icon
option is only used on ConnectIQ 3.4.0 devices with subscreen support.