DateRangePickerSelectionMode enum

Selection modes for SfDateRangePicker.

DateRangePickerSelectionShape, which used to set different shape for the selection view in date range picker.

Inheritance
Available extensions

Values

single → const DateRangePickerSelectionMode
  • DateRangePickerSelectionMode.single, Allows to select a single date, selecting a new date will remove the selection for previous date and updates selection to the new selected date.
multiple → const DateRangePickerSelectionMode
  • DateRangePickerSelection.multiple, Allows multiple date selection, selecting a new date will not remove the selection for previous dates, allows to select as many dates as possible.
range → const DateRangePickerSelectionMode
  • DateRangePickerSelection.range, Allows to select a single range of dates. See also: PickerDateRange
multiRange → const DateRangePickerSelectionMode
  • DateRangePickerSelection.multiRange, Allows to select a multiple ranges of dates.

See also: PickerDateRange.

extendableRange → const DateRangePickerSelectionMode

Extends the selected range with the new selected date in the date range picker. If a new date, after the existing selected range’s end date, is selected, the newly selected range’s start date stays unchanged while the end date will be changed to the newly selected date. Similarly, if a new date, before the existing selected range’s start date, is selected, the newly selected range’s start date will be changed to the newly selected date while the end date still is unchanged. Selecting a date between the ranges will update the range end date if the date selection index is half or more of the total dates count and vice versa for range start date. The range selection will not be updated if you tap on the blackout and disabled dates.

Note: The hovering effect which occurrs while extend the range will not be displayed when the DateRangePickerNavigationMode set as DateRangePickerNavigationMode.scroll.

See also:

  • pickerDateRange, which used to store the start and end date of the range in date range picker. HijriDateRange, which used to store the start and end date of the range in hijri date range picker.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<DateRangePickerSelectionMode>
A constant List of the values in this enum, in order of their declaration.