Skip to main content

SelectableDayForRangePredicate

Type Alias SelectableDayForRangePredicate 

Source
pub type SelectableDayForRangePredicate = Rc<dyn Fn(&App, DateTime, Option<DateTime>, Option<DateTime>) -> bool>;
Expand description

Signature for predicates for enabling a day in a date range picker.

It receives the day, and the start and end of the selected range (either may be null). Days for which it returns false are not selectable.

Aliased Typeยง

pub struct SelectableDayForRangePredicate { /* private fields */ }