DatePromptFluent
ConsoleMonster.Interactive
The fluent methods of DatePrompt, generated from its public properties: A property-named method sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- object
- DatePromptFluent
Methods
public static DatePrompt Default(DatePrompt datePrompt, object value) #Sets Prompt<object>.Default: The default answer: pre-selected, accepted with Enter, and returned in non-interactive sessions.
Parameters
- datePrompt ConsoleMonster.Interactive.DatePrompt
- The instance.
- value object
- The value.
Examples
// C# initializer or property // C# fluent
datePrompt.Default = value; Ui.DatePrompt().Default(value);public static DatePrompt Description(DatePrompt datePrompt, string? value) #Sets Prompt<object>.Description: Help text under the question.
Parameters
- datePrompt ConsoleMonster.Interactive.DatePrompt
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
datePrompt.Description = value; Ui.DatePrompt().Description(value);public static DatePrompt ParameterName(DatePrompt datePrompt, string? value) #Sets Prompt<object>.ParameterName: The parameter that supplies this value non-interactively (-Domain, --domain); named in the non-interactive error message.
Parameters
- datePrompt ConsoleMonster.Interactive.DatePrompt
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
datePrompt.ParameterName = value; Ui.DatePrompt().ParameterName(value);public static DatePrompt Range(DatePrompt datePrompt, bool value) #Sets DatePrompt.Range: Returns one DateRange instead of a DateTime.
Parameters
- datePrompt ConsoleMonster.Interactive.DatePrompt
- The instance.
- value bool
- The value.
Examples
// C# initializer or property // C# fluent
datePrompt.Range = value; Ui.DatePrompt().Range(value);public static DatePrompt Range(DatePrompt datePrompt) #Sets DatePrompt.Range to true.
Parameters
- datePrompt ConsoleMonster.Interactive.DatePrompt
- The instance to configure.
public static DatePrompt Selection(DatePrompt datePrompt, DateSelectionOptions value) #Sets DatePrompt.Selection: Date bounds, unavailable dates, culture and marked-day data.
Parameters
- datePrompt ConsoleMonster.Interactive.DatePrompt
- The instance.
- value ConsoleMonster.Interactive.DateSelectionOptions
- The value.
Examples
// C# initializer or property // C# fluent
datePrompt.Selection = value; Ui.DatePrompt().Selection(value);public static DatePrompt Selection(DatePrompt datePrompt, Action<DateSelectionOptions> configure) #Configures DatePrompt.Selection in place (creating it when not set): Date bounds, unavailable dates, culture and marked-day data.
Parameters
- datePrompt ConsoleMonster.Interactive.DatePrompt
- The instance.
- configure System.Action<ConsoleMonster.Interactive.DateSelectionOptions>
- Configures the value.
public static DatePrompt Title(DatePrompt datePrompt, string value) #Sets Prompt<object>.Title: The question.
Parameters
- datePrompt ConsoleMonster.Interactive.DatePrompt
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
datePrompt.Title = value; Ui.DatePrompt().Title(value);