Class DateRangeField
DateRange Field UI element.
Inheritance
DateRangeField
Implements
INotifyValueChanged<DateRange>
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 DateRangeField : ExVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, IAdditionalDataHolder, IInputElement<DateRange>, IValidatableElement<DateRange>, INotifyValueChanging<DateRange>, INotifyValueChanged<DateRange>, ISizeableElement
Constructors
DateRangeField()
Default constructor.
Declaration
public DateRangeField()
Fields
inputContainerUssClassName
The DateField input container styling class.
Declaration
public static readonly string inputContainerUssClassName
Field Value
Type | Description |
---|---|
string |
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 |
separatorUssClassName
The DateField separator styling class.
Declaration
public static readonly string separatorUssClassName
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<DateRange, bool> validateValue { get; set; }
Property Value
Type | Description |
---|---|
Func<DateRange, bool> |
value
The DateField value.
Declaration
public DateRange value { get; set; }
Property Value
Type | Description |
---|---|
DateRange |
Methods
SetValueWithoutNotify(DateRange)
Sets the DateField value without notifying the DateField.
Declaration
public void SetValueWithoutNotify(DateRange newValue)
Parameters
Type | Name | Description |
---|---|---|
DateRange | newValue | The new DateField value. |
Implements
UnityEngine.UIElements.INotifyValueChanged<T>