pub fn slider<P>(percent: impl Fn() -> P + 'static) -> Sliderwhere P: Into<Pct>,
Creates a new Slider with a function that returns a percentage value. See Slider for more documentation