Class DateField
Date Field UI element.
Inheritance
DateField
Implements
INotifyValueChanged<Date>
Inherited Members
VisualElement.ExecuteDefaultAction(EventBase)
VisualElement.Focus()
VisualElement.Overlaps(Rect)
VisualElement.ToString()
VisualElement.GetFirstOfType<T>()
VisualElement.GetFirstAncestorOfType<T>()
VisualElement.canGrabFocus
VisualElement.focusController
VisualElement.cacheAsBitmap
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class DateField : ExVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, IAdditionalDataHolder, IInputElement<Date>, IValidatableElement<Date>, INotifyValueChanging<Date>, INotifyValueChanged<Date>, ISizeableElement
Constructors
DateField()
Default constructor.
Declaration
public DateField()
Fields
inputUssClassName
The DateField input styling class.
Declaration
public static readonly string inputUssClassName
Field Value
Type | Description |
---|---|
string |
pickerButtonUssClassName
The DateField picker button styling class.
Declaration
public static readonly string pickerButtonUssClassName
Field Value
Type | Description |
---|---|
string |
sizeUssClassName
The DateField size styling class.
Declaration
public static readonly string sizeUssClassName
Field Value
Type | Description |
---|---|
string |
ussClassName
The DateField main styling class.
Declaration
public static readonly string ussClassName
Field Value
Type | Description |
---|---|
string |
Properties
contentContainer
The content container of this DateField. This is null for DateField.
Declaration
public override VisualElement contentContainer { get; }
Property Value
Type | Description |
---|---|
VisualElement |
Overrides
formatString
The DateField string formatting.
Declaration
public string formatString { get; set; }
Property Value
Type | Description |
---|---|
string |
invalid
The DateField invalid state.
Declaration
public bool invalid { get; set; }
Property Value
Type | Description |
---|---|
bool |
size
The DateField size.
Declaration
public Size size { get; set; }
Property Value
Type | Description |
---|---|
Size |
validateValue
The DateField validation function.
Declaration
public Func<Date, bool> validateValue { get; set; }
Property Value
Type | Description |
---|---|
Func<Date, bool> |
value
The DateField value.
Declaration
public Date value { get; set; }
Property Value
Type | Description |
---|---|
Date |
Methods
SetValueWithoutNotify(Date)
Sets the DateField value without notifying the DateField.
Declaration
public void SetValueWithoutNotify(Date newValue)
Parameters
Type | Name | Description |
---|---|---|
Date | newValue | The new DateField value. |
Implements
UnityEngine.UIElements.INotifyValueChanged<T>