DateSelectionOptions
ConsoleMonster.Interactive
Shared calendar data, civil-date bounds and culture for pickers and date questions.
Inheritance
- object
- DateSelectionOptions
Usage
Explore 40 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 16
- Property DatePickerInputOptions.Selection
- Property DatePrompt.Selection
- Extension method DateSelectionOptions.Configure
- Extension method DateSelectionOptions.Culture
- Extension method DateSelectionOptions.Data
- Extension method DateSelectionOptions.FirstDayOfWeek
- Extension method DateSelectionOptions.Maximum
- Extension method DateSelectionOptions.Minimum
- Extension method DateSelectionOptions.Today
- Method DateSelectionOptionsFluent.Configure
- Method DateSelectionOptionsFluent.Culture
- Method DateSelectionOptionsFluent.Data
- Method DateSelectionOptionsFluent.FirstDayOfWeek
- Method DateSelectionOptionsFluent.Maximum
- Method DateSelectionOptionsFluent.Minimum
- Method DateSelectionOptionsFluent.Today
Accepted by parameters 24
- Extension method DatePickerInputOptions.Selection
- Extension method DatePickerInputOptions.Selection
- Method DatePickerInputOptionsFluent.Selection
- Method DatePickerInputOptionsFluent.Selection
- Extension method DatePrompt.Selection
- Extension method DatePrompt.Selection
- Method DatePromptFluent.Selection
- Method DatePromptFluent.Selection
- Extension method DateSelectionOptions.Configure
- Extension method DateSelectionOptions.Configure
- Extension method DateSelectionOptions.Culture
- Extension method DateSelectionOptions.Data
- Extension method DateSelectionOptions.FirstDayOfWeek
- Extension method DateSelectionOptions.Maximum
- Extension method DateSelectionOptions.Minimum
- Extension method DateSelectionOptions.Today
- Method DateSelectionOptionsFluent.Configure
- Method DateSelectionOptionsFluent.Configure
- Method DateSelectionOptionsFluent.Culture
- Method DateSelectionOptionsFluent.Data
- Method DateSelectionOptionsFluent.FirstDayOfWeek
- Method DateSelectionOptionsFluent.Maximum
- Method DateSelectionOptionsFluent.Minimum
- Method DateSelectionOptionsFluent.Today
Constructors
public DateSelectionOptions() #Methods
public DatePicker CreatePicker(string key, bool range = false, object? value = null) #Creates a persistent control over this shared configuration.
Parameters
- key string
- range bool = false
- value object? = null
Returns
DatePickerInherited Methods
Properties
Extension Methods
public static DateSelectionOptions Configure(DateSelectionOptions dateSelectionOptions, Action<DateSelectionOptions> configure) #Assigns callbacks and related configuration without invoking delegate-valued properties.
Parameters
- dateSelectionOptions ConsoleMonster.Interactive.DateSelectionOptions
- The instance.
- configure System.Action<ConsoleMonster.Interactive.DateSelectionOptions>
- Assignments applied in order.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.DateSelectionOptions { Unavailable = value }; Ui.Options<global::ConsoleMonster.Interactive.DateSelectionOptions>().Configure(configured => configured.Unavailable = value);public static DateSelectionOptions Culture(DateSelectionOptions dateSelectionOptions, CultureInfo? value) #Sets DateSelectionOptions.Culture: Display and line-entry culture.
Parameters
- dateSelectionOptions ConsoleMonster.Interactive.DateSelectionOptions
- The instance.
- value System.Globalization.CultureInfo?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.DateSelectionOptions { Culture = value }; Ui.Options<global::ConsoleMonster.Interactive.DateSelectionOptions>().Culture(value);public static DateSelectionOptions Data(DateSelectionOptions dateSelectionOptions, CalendarData value) #Sets DateSelectionOptions.Data: Grouped status marks and labels.
Parameters
- dateSelectionOptions ConsoleMonster.Interactive.DateSelectionOptions
- The instance.
- value ConsoleMonster.Dates.CalendarData
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.DateSelectionOptions { Data = value }; Ui.Options<global::ConsoleMonster.Interactive.DateSelectionOptions>().Data(value);public static DateSelectionOptions FirstDayOfWeek(DateSelectionOptions dateSelectionOptions, DayOfWeek? value) #Sets DateSelectionOptions.FirstDayOfWeek: First weekday; null follows Culture.
Parameters
- dateSelectionOptions ConsoleMonster.Interactive.DateSelectionOptions
- The instance.
- value System.DayOfWeek?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.DateSelectionOptions { FirstDayOfWeek = value }; Ui.Options<global::ConsoleMonster.Interactive.DateSelectionOptions>().FirstDayOfWeek(value);public static DateSelectionOptions Maximum(DateSelectionOptions dateSelectionOptions, DateTime? value) #Sets DateSelectionOptions.Maximum: Latest permitted date.
Parameters
- dateSelectionOptions ConsoleMonster.Interactive.DateSelectionOptions
- The instance.
- value System.DateTime?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.DateSelectionOptions { Maximum = value }; Ui.Options<global::ConsoleMonster.Interactive.DateSelectionOptions>().Maximum(value);public static DateSelectionOptions Minimum(DateSelectionOptions dateSelectionOptions, DateTime? value) #Sets DateSelectionOptions.Minimum: Earliest permitted date.
Parameters
- dateSelectionOptions ConsoleMonster.Interactive.DateSelectionOptions
- The instance.
- value System.DateTime?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.DateSelectionOptions { Minimum = value }; Ui.Options<global::ConsoleMonster.Interactive.DateSelectionOptions>().Minimum(value);public static DateSelectionOptions Today(DateSelectionOptions dateSelectionOptions, DateTime value) #Sets DateSelectionOptions.Today: Injectable civil date for today and the initial cursor.
Parameters
- dateSelectionOptions ConsoleMonster.Interactive.DateSelectionOptions
- The instance.
- value System.DateTime
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.DateSelectionOptions { Today = value }; Ui.Options<global::ConsoleMonster.Interactive.DateSelectionOptions>().Today(value);