The igc-date-range-picker allows the user to select a range of dates.

Implements
  • IComponent
  • IHandleEvent
  • IHandleAfterRender
  • JsonSerializable
  • IDisposable

constructor

public IgbDateRangePicker()

Returns IgbDateRangePicker

Inherited from: IgbComboBoxBaseLike

Whether the component dropdown should be kept open on selection.

[Parameter]
public bool KeepOpenOnSelect { get; set; }

Inherited from: IgbComboBoxBaseLike

Whether the component dropdown should be kept open on clicking outside of it.

[Parameter]
public bool KeepOpenOnOutsideClick { get; set; }

Inherited from: IgbBaseComboBox

Gets the components default event behavior.

protected override ControlEventBehavior DefaultEventBehavior { get; }

Inherited from: IgbBaseComboBox

Sets the open state of the component.

[Parameter]
public bool Open { get; set; }

Inherited from: BaseRendererControl

[Inject]
protected IIgniteUIBlazor IgBlazor { get; set; }

Inherited from: BaseRendererControl

[Parameter]
public string Height { get; set; }

Inherited from: BaseRendererControl

[Parameter]
public string Width { get; set; }

Inherited from: BaseRendererControl

[Parameter]
public string Class { get; set; }

Inherited from: BaseRendererControl

[Parameter(CaptureUnmatchedValues = true)]
public Dictionary<string, object> AdditionalAttributes { get; set; }

Inherited from: BaseRendererControl

protected virtual string ParentTypeName { get; }

Inherited from: BaseRendererControl

Gets or sets how events are bubbled up from JavaScript to Blazor.

[Parameter]
public ControlEventBehavior EventBehavior { get; set; }

Inherited from: BaseRendererControl

[Parameter]
public RenderFragment ChildContent { get; set; }

Inherited from: BaseRendererControl

Gets or sets what type of date conversion to make when round tripping dates.

[Parameter]
public RoundTripDateConversion RoundTripDateConversion { get; set; }

Inherited from: BaseRendererControl

protected virtual bool UseDirectRender { get; }

Inherited from: BaseRendererControl

protected virtual string DirectRenderElementName { get; }

Inherited from: BaseRendererControl

protected virtual bool NeedsDynamicContent { get; }

Inherited from: BaseRendererControl

protected virtual bool UseCamelEnumValues { get; }

Gets/Sets the date which is shown in the calendar picker and is highlighted. By default it is the current date.

[Parameter]
public DateTime ActiveDate { get; set; }

Renders chips with custom ranges based on the elements of the array.

[Parameter]
public IgbCustomDateRange[] CustomRanges { get; set; }

The disabled state of the component

[Parameter]
public bool Disabled { get; set; }

Gets/sets disabled dates.

[Parameter]
public IgbDateRangeDescriptor[] DisabledDates { get; set; }

Format to display the value in when not editing. Defaults to the locale format if not set.

[Parameter]
public string DisplayFormat { get; set; }

The orientation of the calendar header.

[Parameter]
public ContentOrientation HeaderOrientation { get; set; }

Determines whether the calendar hides its header.

[Parameter]
public bool HideHeader { get; set; }

Controls the visibility of the dates that do not belong to the current month.

[Parameter]
public bool HideOutsideDays { get; set; }

The date format to apply on the inputs. Defaults to the current locale Intl.DateTimeFormat

[Parameter]
public string InputFormat { get; set; }

Control the validity of the control.

[Parameter]
public bool Invalid { get; set; }

The label of the control (single input).

[Parameter]
public string Label { get; set; }

The label attribute of the end input.

[Parameter]
public string LabelEnd { get; set; }

The label attribute of the start input.

[Parameter]
public string LabelStart { get; set; }

The locale settings used to display the value.

[Parameter]
public string Locale { get; set; }

The maximum value required for the date range picker to remain valid.

[Parameter]
public DateTime? Max { get; set; }

The minimum value required for the date range picker to remain valid.

[Parameter]
public DateTime? Min { get; set; }

Determines whether the calendar is opened in a dropdown or a modal dialog

[Parameter]
public PickerMode Mode { get; set; }

Whether to allow typing in the input.

[Parameter]
public bool NonEditable { get; set; }

The orientation of the multiple months displayed in the calendar's days view.

[Parameter]
public ContentOrientation Orientation { get; set; }

Whether the control will have outlined appearance.

[Parameter]
public bool Outlined { get; set; }

The placeholder attribute of the control (single input).

[Parameter]
public string Placeholder { get; set; }

The placeholder attribute of the end input.

[Parameter]
public string PlaceholderEnd { get; set; }

The placeholder attribute of the start input.

[Parameter]
public string PlaceholderStart { get; set; }

The prompt symbol to use for unfilled parts of the mask.

[Parameter]
public string Prompt { get; set; }

Makes the control a readonly field.

[Parameter]
[WCAttributeName("readonly")]
public bool ReadOnly { get; set; }

Makes the control a required field in a form context.

[Parameter]
public bool Required { get; set; }

The resource strings of the date range picker.

[Parameter]
public IgbDateRangePickerResourceStrings ResourceStrings { get; set; }

Whether to show the number of the week in the calendar.

[Parameter]
public bool ShowWeekNumbers { get; set; }

Gets/sets special dates.

[Parameter]
public IgbDateRangeDescriptor[] SpecialDates { get; set; }
protected override bool SupportsVisualChildren { get; }
public override string Type { get; }

Whether the control will show chips with predefined ranges.

[Parameter]
public bool UsePredefinedRanges { get; set; }

Use two inputs to display the date range values. Makes the input editable in dropdown mode.

[Parameter]
public bool UseTwoInputs { get; set; }

The value of the picker

[Parameter]
public IgbDateRangeValue? Value { get; set; }
[Parameter]
public double VisibleMonths { get; set; }

Sets the start day of the week for the calendar.

[Parameter]
public WeekDays WeekStart { get; set; }

Inherited from: BaseRendererControl

protected Dictionary<Type, Dictionary<string, FieldInfo>> eventCallbacksCache

Inherited from: BaseRendererControl

protected string _cachedSerializedContent

Inherited from: IgbBaseComboBox

public Task SetNativeElementAsync(object element)

Parameters

  • element: object

Returns any

Inherited from: IgbBaseComboBox

public void SetNativeElement(object element)

Parameters

  • element: object

Returns any

Inherited from: IgbBaseComboBox

Shows the component.

public Task<bool> ShowAsync()

Returns any

Inherited from: IgbBaseComboBox

public bool Show()

Returns any

Inherited from: IgbBaseComboBox

Hides the component.

public Task<bool> HideAsync()

Returns any

Inherited from: IgbBaseComboBox

public bool Hide()

Returns any

Inherited from: IgbBaseComboBox

Toggles the open state of the component.

public Task<bool> ToggleAsync()

Returns any

Inherited from: IgbBaseComboBox

public bool Toggle()

Returns any

Inherited from: BaseRendererControl

Resolves the components event behavior if Auto is selected.

protected ControlEventBehavior ResolveEventBehavior()

Returns any

Inherited from: BaseRendererControl

protected string ToSpinal(string value)

Parameters

  • value: string

Returns any

Inherited from: BaseRendererControl

protected virtual string TransformSimpleKey(string key)

Parameters

  • key: string

Returns any

Inherited from: BaseRendererControl

protected virtual bool IsTransformedEnumValue(string key)

Parameters

  • key: string

Returns any

TransformPotentialEnumValue(string, object)

Section titled "TransformPotentialEnumValue(string, object)"

Inherited from: BaseRendererControl

protected virtual object TransformPotentialEnumValue(string key, object value)

Parameters

  • key: string
  • value: object

Returns any

Inherited from: BaseRendererControl

protected virtual SequenceInfo BuildSequenceInfo(int startSequence)

Parameters

  • startSequence: int

Returns any

Inherited from: BaseRendererControl

protected override void BuildRenderTree(RenderTreeBuilder builder)

Parameters

  • builder: RenderTreeBuilder

Returns any

Inherited from: BaseRendererControl

protected Type TemplateContentType(string templateId)

Parameters

  • templateId: string

Returns any

Inherited from: BaseRendererControl

protected override Task OnAfterRenderAsync(bool firstRender)

Parameters

  • firstRender: bool

Returns any

Inherited from: BaseRendererControl

public Task EnsureReady()

Returns any

Inherited from: BaseRendererControl

protected void MarkPropDirty(string propertyName)

Parameters

  • propertyName: string

Returns any

Inherited from: BaseRendererControl

protected bool IsPropDirty(string propertyName)

Parameters

  • propertyName: string

Returns any

Serialize(SerializationContext, string)

Section titled "Serialize(SerializationContext, string)"

Inherited from: BaseRendererControl

public void Serialize(SerializationContext context, string propertyName = null)

Parameters

  • context: SerializationContext
  • propertyName: string

Returns any

Inherited from: BaseRendererControl

public string Serialize()

Returns any

InvokeMethod(string, object[], string[], ElementReference[])

Section titled "InvokeMethod(string, object[], string[], ElementReference[])"

Inherited from: BaseRendererControl

protected Task<object> InvokeMethod(string methodName, object[] arguments, string[] types, ElementReference[] nativeElements = null)

Parameters

  • methodName: string
  • arguments: object[]
  • types: string[]
  • nativeElements: ElementReference[]

Returns any

InvokeMethodSync(string, object[], string[], ElementReference[])

Section titled "InvokeMethodSync(string, object[], string[], ElementReference[])"

Inherited from: BaseRendererControl

protected object InvokeMethodSync(string methodName, object[] arguments, string[] types, ElementReference[] nativeElements = null)

Parameters

  • methodName: string
  • arguments: object[]
  • types: string[]
  • nativeElements: ElementReference[]

Returns any

Inherited from: BaseRendererControl

Prevents data change notifications from be propagated to the component.

public void SuspendNotifications(object dataSource)

Parameters

  • dataSource: object

Returns any

Inherited from: BaseRendererControl

Resumes data change notifications.

public void ResumeNotifications(object dataSource, bool notify = true)

Parameters

  • dataSource: object
  • notify: bool

Returns any

NotifyInsertItem(object, int, object)

Section titled "NotifyInsertItem(object, int, object)"

Inherited from: BaseRendererControl

public void NotifyInsertItem(object dataSource, int index, object refItem)

Parameters

  • dataSource: object
  • index: int
  • refItem: object

Returns any

NotifyRemoveItem(object, int, object)

Section titled "NotifyRemoveItem(object, int, object)"

Inherited from: BaseRendererControl

public void NotifyRemoveItem(object dataSource, int index, object oldItem)

Parameters

  • dataSource: object
  • index: int
  • oldItem: object

Returns any

Inherited from: BaseRendererControl

public void NotifyClearItems(object dataSource)

Parameters

  • dataSource: object

Returns any

NotifySetItem(object, int, object, object)

Section titled "NotifySetItem(object, int, object, object)"

Inherited from: BaseRendererControl

public void NotifySetItem(object dataSource, int index, object oldItem, object newItem)

Parameters

  • dataSource: object
  • index: int
  • oldItem: object
  • newItem: object

Returns any

NotifyUpdateItem(object, int, object, bool)

Section titled "NotifyUpdateItem(object, int, object, bool)"

Inherited from: BaseRendererControl

public void NotifyUpdateItem(object dataSource, int index, object refItem, bool syncDataOnly = false)

Parameters

  • dataSource: object
  • index: int
  • refItem: object
  • syncDataOnly: bool

Returns any

Inherited from: BaseRendererControl

public void OnRefChanged(string refName, object refValue)

Parameters

  • refName: string
  • refValue: object

Returns any

Inherited from: BaseRendererControl

public void OnInvokeReturn(long invokeId, object returnValue)

Parameters

  • invokeId: long
  • returnValue: object

Returns any

Inherited from: BaseRendererControl

protected string Camelize(string value)

Parameters

  • value: string

Returns any

Inherited from: BaseRendererControl

protected string ToPascal(string value)

Parameters

  • value: string

Returns any

OnElementNameChanged(BaseRendererElement, string, string)

Section titled "OnElementNameChanged(BaseRendererElement, string, string)"

Inherited from: BaseRendererControl

protected void OnElementNameChanged(BaseRendererElement element, string oldName, string newName)

Parameters

  • element: BaseRendererElement
  • oldName: string
  • newName: string

Returns any

Inherited from: BaseRendererControl

protected virtual void Dispose(bool disposing)

Parameters

  • disposing: bool

Returns any

SetResourceStringAsync(string, string, string)

Section titled "SetResourceStringAsync(string, string, string)"

Inherited from: BaseRendererControl

public Task<object> SetResourceStringAsync(string grouping, string id, string value)

Parameters

  • grouping: string
  • id: string
  • value: string

Returns any

SetResourceStringAsync(string, string)

Section titled "SetResourceStringAsync(string, string)"

Inherited from: BaseRendererControl

public Task<object> SetResourceStringAsync(string grouping, string json)

Parameters

  • grouping: string
  • json: string

Returns any

SetPropertyValue(object, PropertyInfo, JsonElement)

Section titled "SetPropertyValue(object, PropertyInfo, JsonElement)"

Inherited from: BaseRendererControl

protected void SetPropertyValue(object item, PropertyInfo property, JsonElement jsonElement)

Parameters

  • item: object
  • property: PropertyInfo
  • jsonElement: JsonElement

Returns any

SetPropertyValue(object, PropertyInfo, object)

Section titled "SetPropertyValue(object, PropertyInfo, object)"

Inherited from: BaseRendererControl

protected void SetPropertyValue(object item, PropertyInfo property, object value)

Parameters

  • item: object
  • property: PropertyInfo
  • value: object

Returns any

Inherited from: BaseRendererControl

public void Dispose()

Returns any

public bool CheckValidity()

Returns any

Checks for validity of the control and emits the invalid event if it invalid.

public Task<bool> CheckValidityAsync()

Returns any

public void Clear()

Returns any

Clears the input parts of the component of any user input

public Task ClearAsync()

Returns any

protected override void EnsureModulesLoaded()

Returns any

public override object FindByName(string name)

Parameters

  • name: string

Returns any

public IgbDateRangeValue? GetCurrentValue()

Returns any

public Task<IgbDateRangeValue?> GetCurrentValueAsync()

Returns any

public bool ReportValidity()

Returns any

Checks for validity of the control and shows the browser message if it invalid.

public Task<bool> ReportValidityAsync()

Returns any

protected override string ResolveDisplay()

Returns any

public void Select(IgbDateRangeValue value)

Parameters

  • value: IgbDateRangeValue

Returns any

Selects a date range value in the picker

public Task SelectAsync(IgbDateRangeValue value)

Parameters

  • value: IgbDateRangeValue

Returns any

public void SetCustomValidity(string message)

Parameters

  • message: string

Returns any

Sets a custom validation message for the control. As long as message is not empty, the control is considered invalid.

public Task SetCustomValidityAsync(string message)

Parameters

  • message: string

Returns any

[Parameter]
public EventCallback<IgbDateRangeValueEventArgs> Change { get; set; }
[Parameter]
public EventCallback<IgbVoidEventArgs> Closed { get; set; }
[Parameter]
public EventCallback<IgbVoidEventArgs> Closing { get; set; }
[Parameter]
public EventCallback<IgbDateRangeValueEventArgs> Input { get; set; }
[Parameter]
public EventCallback<IgbVoidEventArgs> Opened { get; set; }
[Parameter]
public EventCallback<IgbVoidEventArgs> Opening { get; set; }
[Parameter]
public EventCallback<IgbDateRangeValue?> ValueChanged { get; set; }
[Parameter]
public string ChangeScript { get; set; }
[Parameter]
public string ClosedScript { get; set; }
[Parameter]
public string ClosingScript { get; set; }
[Parameter]
public string InputScript { get; set; }
[Parameter]
public string OpenedScript { get; set; }
[Parameter]
public string OpeningScript { get; set; }