pub fn suggestions<'a, Message: Clone + 'a>(
heading: Option<String>,
rows: &[Suggestion],
highlighted: Option<usize>,
on_choose: impl Fn(usize) -> Message,
empty: Option<String>,
mono: bool,
scale: FontScale,
) -> Option<Element<'a, Message>>Expand description
The panel. heading is a dim line above the rows — Files puts the
resolution there, ~/pr/hy → ~/projects/hyprsuite. empty is what it
says when there are no rows; None draws nothing at all instead,
which is right while the first answer is still being worked out.
Opaque: a click on the panel’s own padding must not fall through to whatever listing is underneath it.