ToggleButtonViewModel

ToggleButtonViewModel

new ToggleButtonViewModel

A ViewModel which exposes the properties of a toggle button.

Parameters:
Name Type Argument Description
options Object <optional>
A options defining the button's properties.

Members

command :Command

A command object which encapsulates what happens when the button is toggled.

toggled :Observable

An observable boolean indicating if the button is currently toggled.

tooltip :Observable

An observable string defining the tool tip.