Mashup Builder > Widgets > Beta Widgets > Toggle Button Widget (Beta)
  
Toggle Button Widget (Beta)
The Toggle Button widget enables the mashup user to switch between two settings.
* 
The Toggle Button widget is available as a Beta widget in the platform and as a web component that can be imported from an SDK.
The SDK is available at PTC Support under Download Software > Order or Download Software Updates > ThingWorx Platform > Release 8.4.
The properties of Toggle Button widget are listed below.
Property Name
Description
Base Type
Default Value
Bindable? (Y/N)
Localizable? (Y/N)
State
Enables you to set the state of the toggle button as on/off..
BOOLEAN
False
Y
N
Disabled
Use this property to disable the widget in the mashup. The widget is displayed in the mashup but you cannot click it.
BOOLEAN
False
Y
N
Label
The text that is displayed next to the toggle button.
STRING
n/a
Y
Y
LabelMaxWidth
Enables you to set a maximum width for the label The label is displayed on multiple lines when the maximum width is reached.
* 
The maximum width of the label is reset if you set a fixed width for the widget.
NUMBER
n/a
N
N
TabSequence
The sequence of the widgets in which they are highlighted when the user presses Tab key.
NUMBER
n/a
N
N
CustomClass
Enables you to define the CSS to the top div of the widget. Multiple classes can be entered, separated by space.
STRING
n/a
Y
N
LabelAlignment
Enables you to align the label to the left or right of the toggle button.
STRING
Left
N
N
ResetToDefaultValue
Resets the input for this widget to its default values.
n/a
n/a
Y
N
Width
The width of the widget. The width is set to the width of the label by default. Enter a value in the property panel or resize the widget in the canvas to set a fixed width.
* 
The fixed width of the widget is reset if you set maximum width for the label.
NUMBER
n/a
N
N
Height
The height of the widget. The height is set to the maximum width of the label by default. It increases if the widget has multiline label. Enter a value in the property panel or resize the widget in the canvas to set a fixed height.
NUMBER
n/a
N
N