Ext.NET  5.3.0
.NET Component Framework for Enterprise Level Apps
Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder > Class Template Reference

More...

Inheritance diagram for Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >:
Ext.Net.PickerField.Builder< TDateFieldBase, TBuilder >

Public Member Functions

 Builder (TDateFieldBase component)
 
virtual TBuilder PickerOptions (DatePicker pickerOptions)
 
virtual TBuilder SelectedDate (DateTime selectedDate)
 Gets or sets the current selected date of the DatePicker. Accepts and returns a DateTime object. More...
 
virtual TBuilder SelectedValue (object selectedValue)
 Gets or sets the current selected date of the DatePicker. More...
 
virtual TBuilder EmptyDate (DateTime emptyDate)
 The fields null value. More...
 
virtual TBuilder AltFormats (string altFormats)
 Multiple date formats separated by " | " to try when parsing a user input value and it does not match the defined format (defaults to 'm/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d|n-j|n/j'). More...
 
virtual TBuilder AriaDisabledDatesText (string ariaDisabledDatesText)
 The text that Assistive Technologies such as screen readers will announce when the date falls on a disabled date. More...
 
virtual TBuilder AriaDisabledDaysText (string ariaDisabledDaysText)
 The text that Assistive Technologies such as screen readers will announce when the date falls on a disabled day of week. More...
 
virtual TBuilder AriaFormat (string ariaFormat)
 This date format will be used to format ARIA attributes in the field and its Picker, to provide Assistive Technologies such as screen readers with user friendly text. More...
 
virtual TBuilder AriaMaxText (string ariaMaxText)
 The text that Assistive Technologies such as screen readers will announce when the date in the cell is after maxValue. More...
 
virtual TBuilder AriaMinText (string ariaMinText)
 The text that Assistive Technologies such as screen readers will announce when the date in the cell is before minValue. More...
 
virtual TBuilder DisabledDates (Action< DisabledDateCollection > action)
 An array of "dates" to disable, as strings. These strings will be used to build a dynamic regular expression so they are very powerful. More...
 
virtual TBuilder DisabledDatesText (string disabledDatesText)
 The tooltip text to display when the date falls on a disabled date (defaults to 'Disabled'). More...
 
virtual TBuilder DisabledDays (int[] disabledDays)
 An array of days to disable, 0 based. For example, [0, 6] disables Sunday and Saturday (defaults to null). More...
 
virtual TBuilder DisabledDaysText (string disabledDaysText)
 The tooltip to display when the date falls on a disabled day (defaults to 'Disabled'). More...
 
virtual TBuilder Format (string format)
 The default date format string which can be overriden for localization support. The format must be valid according to Date.parseDate (defaults to 'd'). More...
 
virtual TBuilder MaxText (string maxText)
 The error text to display when the date in the cell is after MaxValue (defaults to 'TThe date in this field must be equal to or before {0}'). More...
 
virtual TBuilder MaxDate (DateTime maxDate)
 The maximum allowed date. Can be either a Javascript date object or a string date in a valid format (defaults to undefined). More...
 
virtual TBuilder MinText (string minText)
 The error text to display when the date in the cell is before MinValue (defaults to 'The date in this field must be equal to or after {0}'). More...
 
virtual TBuilder MinDate (DateTime minDate)
 The minimum allowed date. Can be either a Javascript date object or a string date in a valid format (defaults to undefined). More...
 
virtual TBuilder ShowToday (bool showToday)
 False to hide the footer area of the DatePicker containing the Today button and disable the keyboard handler for spacebar that selects the current date (defaults to true). More...
 
virtual TBuilder StartDay (int startDay)
 Day index at which the week should begin, 0-based (defaults to 0, which is Sunday) More...
 
virtual TBuilder SubmitFormat (string submitFormat)
 The date format string which will be submitted to the server. The format must be valid according to Ext.Date.parse (defaults to format). More...
 
virtual TBuilder UseStrict (bool useStrict)
 True to enforce strict date parsing to prevent the default Javascript "date rollover". Defaults to the useStrict parameter set on Ext.Date See Ext.Date.parse. More...
 
virtual TBuilder ValidateOnFocusLeave (bool? validateOnFocusLeave)
 Set to true to validate the field when focus leaves the field's component hierarchy entirely. More...
 
virtual TBuilder OkText (string okText)
 The text to display on the ok button. Defaults 'OK' More...
 
virtual TBuilder CancelText (string cancelText)
 The text to display on the cancel button. Defaults to 'Cancel' More...
 
virtual TBuilder Type (DatePickerType type)
 
virtual TBuilder CheckChange ()
 
- Public Member Functions inherited from Ext.Net.PickerField.Builder< TDateFieldBase, TBuilder >
 Builder (TPickerField component)
 
virtual TBuilder MatchFieldWidth (bool matchFieldWidth)
 Whether the picker dropdown's width should be explicitly set to match the width of the field. Defaults to true. More...
 
virtual TBuilder OpenCls (string openCls)
 A class to be added to the field's bodyEl element when the picker is opened. Defaults to 'x-pickerfield-open'. More...
 
virtual TBuilder PickerAlign (string pickerAlign)
 The alignment position with which to align the picker. Defaults to "tl-bl?" More...
 
virtual TBuilder PickerOffset (int[] pickerOffset)
 An offset [x,y] to use in addition to the pickerAlign when positioning the picker. Defaults to undefined. More...
 
virtual TBuilder AutoPostBackEvent (PickerAutoPostBackEvent autoPostBackEvent)
 
virtual TBuilder TriggerCls (string triggerCls)
 An additional CSS class used to style the trigger button. The trigger will always get the class 'x-form-trigger' and triggerCls will be appended if specified. More...
 
virtual TBuilder TriggerIcon (TriggerIcon triggerIcon)
 The icon to use in the trigger. More...
 
virtual TBuilder HideBaseTrigger (bool hideBaseTrigger)
 true to hide base trigger More...
 
virtual TBuilder Expand ()
 
virtual TBuilder Collapse ()
 
virtual TBuilder SetHideBaseTrigger (bool hideTrigger)
 Sets the value of hideBaseTrigger. More...
 

Detailed Description

Type Constraints
TDateFieldBase :DateFieldBase 
TBuilder :Builder 
TBuilder :TDateFieldBase 
TBuilder :TBuilder 

Constructor & Destructor Documentation

◆ Builder()

Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.Builder ( TDateFieldBase  component)
inline

Member Function Documentation

◆ AltFormats()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.AltFormats ( string  altFormats)
inlinevirtual

Multiple date formats separated by " | " to try when parsing a user input value and it does not match the defined format (defaults to 'm/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d|n-j|n/j').

◆ AriaDisabledDatesText()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.AriaDisabledDatesText ( string  ariaDisabledDatesText)
inlinevirtual

The text that Assistive Technologies such as screen readers will announce when the date falls on a disabled date.

Defaults to: "This date cannot be selected"

◆ AriaDisabledDaysText()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.AriaDisabledDaysText ( string  ariaDisabledDaysText)
inlinevirtual

The text that Assistive Technologies such as screen readers will announce when the date falls on a disabled day of week.

Defaults to: "This day of week is disabled"

◆ AriaFormat()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.AriaFormat ( string  ariaFormat)
inlinevirtual

This date format will be used to format ARIA attributes in the field and its Picker, to provide Assistive Technologies such as screen readers with user friendly text.

Defaults to: "d"

◆ AriaMaxText()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.AriaMaxText ( string  ariaMaxText)
inlinevirtual

The text that Assistive Technologies such as screen readers will announce when the date in the cell is after maxValue.

The date substituted for {0} will be formatted as per ariaFormat.

Defaults to: "The date must be equal to or before {0}"

◆ AriaMinText()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.AriaMinText ( string  ariaMinText)
inlinevirtual

The text that Assistive Technologies such as screen readers will announce when the date in the cell is before minValue.

The date substituted for {0} will be formatted as per ariaFormat.

Defaults to: "The date must be equal to or after {0}"

◆ CancelText()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.CancelText ( string  cancelText)
inlinevirtual

The text to display on the cancel button. Defaults to 'Cancel'

◆ CheckChange()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.CheckChange ( )
inlinevirtual

◆ DisabledDates()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.DisabledDates ( Action< DisabledDateCollection action)
inlinevirtual

An array of "dates" to disable, as strings. These strings will be used to build a dynamic regular expression so they are very powerful.

Parameters
actionThe action delegate
Returns
An instance of TBuilder

◆ DisabledDatesText()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.DisabledDatesText ( string  disabledDatesText)
inlinevirtual

The tooltip text to display when the date falls on a disabled date (defaults to 'Disabled').

◆ DisabledDays()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.DisabledDays ( int[]  disabledDays)
inlinevirtual

An array of days to disable, 0 based. For example, [0, 6] disables Sunday and Saturday (defaults to null).

◆ DisabledDaysText()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.DisabledDaysText ( string  disabledDaysText)
inlinevirtual

The tooltip to display when the date falls on a disabled day (defaults to 'Disabled').

◆ EmptyDate()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.EmptyDate ( DateTime  emptyDate)
inlinevirtual

The fields null value.

◆ Format()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.Format ( string  format)
inlinevirtual

The default date format string which can be overriden for localization support. The format must be valid according to Date.parseDate (defaults to 'd').

◆ MaxDate()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.MaxDate ( DateTime  maxDate)
inlinevirtual

The maximum allowed date. Can be either a Javascript date object or a string date in a valid format (defaults to undefined).

◆ MaxText()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.MaxText ( string  maxText)
inlinevirtual

The error text to display when the date in the cell is after MaxValue (defaults to 'TThe date in this field must be equal to or before {0}').

◆ MinDate()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.MinDate ( DateTime  minDate)
inlinevirtual

The minimum allowed date. Can be either a Javascript date object or a string date in a valid format (defaults to undefined).

◆ MinText()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.MinText ( string  minText)
inlinevirtual

The error text to display when the date in the cell is before MinValue (defaults to 'The date in this field must be equal to or after {0}').

◆ OkText()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.OkText ( string  okText)
inlinevirtual

The text to display on the ok button. Defaults 'OK'

◆ PickerOptions()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.PickerOptions ( DatePicker  pickerOptions)
inlinevirtual

◆ SelectedDate()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.SelectedDate ( DateTime  selectedDate)
inlinevirtual

Gets or sets the current selected date of the DatePicker. Accepts and returns a DateTime object.

◆ SelectedValue()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.SelectedValue ( object  selectedValue)
inlinevirtual

Gets or sets the current selected date of the DatePicker.

◆ ShowToday()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.ShowToday ( bool  showToday)
inlinevirtual

False to hide the footer area of the DatePicker containing the Today button and disable the keyboard handler for spacebar that selects the current date (defaults to true).

◆ StartDay()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.StartDay ( int  startDay)
inlinevirtual

Day index at which the week should begin, 0-based (defaults to 0, which is Sunday)

◆ SubmitFormat()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.SubmitFormat ( string  submitFormat)
inlinevirtual

The date format string which will be submitted to the server. The format must be valid according to Ext.Date.parse (defaults to format).

◆ Type()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.Type ( DatePickerType  type)
inlinevirtual

◆ UseStrict()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.UseStrict ( bool  useStrict)
inlinevirtual

True to enforce strict date parsing to prevent the default Javascript "date rollover". Defaults to the useStrict parameter set on Ext.Date See Ext.Date.parse.

◆ ValidateOnFocusLeave()

virtual TBuilder Ext.Net.DateFieldBase.Builder< TDateFieldBase, TBuilder >.ValidateOnFocusLeave ( bool?  validateOnFocusLeave)
inlinevirtual

Set to true to validate the field when focus leaves the field's component hierarchy entirely.


The documentation for this class was generated from the following file: