Class RadioGroup
A container for a set of Radio UI elements.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class RadioGroup : BaseVisualElement, IEventHandler, IVisualElementScheduler, IExperimentalFeatures, ITransitionAnimations, ITransform, IResolvedStyle, IContextOverrideElement, IAdditionalDataHolder, IInputElement<string>, IValidatableElement<string>, INotifyValueChanged<string>
Constructors
RadioGroup()
Default constructor.
Declaration
public RadioGroup()
Fields
ussClassName
The RadioGroup main styling class.
Declaration
public const string ussClassName = "appui-radiogroup"
Field Value
Type | Description |
---|---|
string |
Properties
contentContainer
The RadioGroup content container.
Declaration
public override VisualElement contentContainer { get; }
Property Value
Type | Description |
---|---|
Visual |
Overrides
invalid
The RadioGroup invalid state.
Declaration
public bool invalid { get; set; }
Property Value
Type | Description |
---|---|
bool |
validateValue
The RadioGroup validation function.
Declaration
public Func<string, bool> validateValue { get; set; }
Property Value
value
The selected item key.
Declaration
public string value { get; set; }
Property Value
Type | Description |
---|---|
string |
Exceptions
Type | Condition |
---|---|
Argument |
if the value is out of range. |
Methods
SetValueWithoutNotify(string)
Set the value without notifying the listeners.
Declaration
public void SetValueWithoutNotify(string newValue)
Parameters
Type | Name | Description |
---|---|---|
string | newValue | The new value. |