Class Toggle
Toggle UI element.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class Toggle : VisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IValidatableElement<bool>, INotifyValueChanged<bool>, IPressable
Constructors
Name | Description |
---|---|
Toggle() | Default constructor. |
Fields
Name | Description |
---|---|
boxUssClassName | The Toggle box styling class. |
checkmarkContainerUssClassName | The Toggle checkmark container styling class. |
checkmarkUssClassName | The Toggle checkmark styling class. |
labelUssClassName | The Toggle label styling class. |
paddedBoxUssClassName | The Toggle box padded styling class. |
sizeUssClassName | The Toggle size styling class. |
ussClassName | The Toggle main styling class. |
Properties
Name | Description |
---|---|
clickable | Clickable Manipulator for this Toggle. |
invalid | The invalid state of the Toggle. |
label | The Toggle label. |
size | The Toggle size. |
validateValue | The validation function for the Toggle. |
value | The Toggle value. |
Methods
Name | Description |
---|---|
SetValueWithoutNotify(bool) | Set the Toggle value without notifying the change. |