Class InputLabel
InputLabel UI element.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class InputLabel : BaseVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement
Constructors
InputLabel()
Default constructor.
Declaration
public InputLabel()
InputLabel(string)
Constructor.
Declaration
public InputLabel(string label)
Parameters
Type | Name | Description |
---|---|---|
string | label | The label value. |
Fields
containerUssClassName
The InputLabel container styling class.
Declaration
public static readonly string containerUssClassName
Field Value
Type | Description |
---|---|
string |
fieldLabelUssClassName
The InputLabel field-label styling class.
Declaration
public static readonly string fieldLabelUssClassName
Field Value
Type | Description |
---|---|
string |
helpTextUssClassName
The InputLabel help text styling class.
Declaration
public static readonly string helpTextUssClassName
Field Value
Type | Description |
---|---|
string |
inputAlignmentUssClassName
The InputLabel input alignment styling class.
Declaration
public static readonly string inputAlignmentUssClassName
Field Value
Type | Description |
---|---|
string |
inputContainerUssClassName
The InputLabel input container styling class.
Declaration
public static readonly string inputContainerUssClassName
Field Value
Type | Description |
---|---|
string |
labelContainerUssClassName
The InputLabel label container styling class.
Declaration
public static readonly string labelContainerUssClassName
Field Value
Type | Description |
---|---|
string |
orientationUssClassName
The InputLabel direction styling class.
Declaration
public static readonly string orientationUssClassName
Field Value
Type | Description |
---|---|
string |
sizeUssClassName
The InputLabel size styling class.
Declaration
public static readonly string sizeUssClassName
Field Value
Type | Description |
---|---|
string |
ussClassName
The InputLabel main styling class.
Declaration
public static readonly string ussClassName
Field Value
Type | Description |
---|---|
string |
withHelpTextUssClassName
The InputLabel with help text styling class.
Declaration
public static readonly string withHelpTextUssClassName
Field Value
Type | Description |
---|---|
string |
Properties
contentContainer
The content container.
Declaration
public override VisualElement contentContainer { get; }
Property Value
Type | Description |
---|---|
VisualElement |
Overrides
direction
The orientation of the label.
Declaration
public Direction direction { get; set; }
Property Value
Type | Description |
---|---|
Direction |
helpMessage
The error message to display.
Declaration
public string helpMessage { get; set; }
Property Value
Type | Description |
---|---|
string |
helpVariant
The variant of the HelpText.
Declaration
public HelpTextVariant helpVariant { get; set; }
Property Value
Type | Description |
---|---|
HelpTextVariant |
indicatorType
The requirement indicator to display.
Declaration
public IndicatorType indicatorType { get; set; }
Property Value
Type | Description |
---|---|
IndicatorType |
inputAlignment
The alignment of the input.
Declaration
public Align inputAlignment { get; set; }
Property Value
Type | Description |
---|---|
Align |
label
The label value.
Declaration
public string label { get; set; }
Property Value
Type | Description |
---|---|
string |
labelOverflow
The text overflow mode.
Declaration
public TextOverflow labelOverflow { get; set; }
Property Value
Type | Description |
---|---|
TextOverflow |
required
Whether the input is required or not in the form. This will add an asterisk next to the label.
Declaration
public bool required { get; set; }
Property Value
Type | Description |
---|---|
bool |
requiredText
The requirement indicator to display.
Declaration
public string requiredText { get; set; }
Property Value
Type | Description |
---|---|
string |