Skip to main content

SelectableDayPredicate

Type Alias SelectableDayPredicate 

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

Signature for predicating dates for enabled date selections.

See showDatePicker and showCupertinoModalPopup, which have a SelectableDayPredicate parameter used to specify allowable days in the date picker. It takes the App, whose platform gives the local time zone the day’s fields are read in.

Aliased Type§

pub struct SelectableDayPredicate { /* private fields */ }