pub struct ExpansionPanel<Msg = Callback> { /* private fields */ }Expand description
One panel of an ExpansionPanelList: a header and what it hides.
Implementations§
Source§impl<Msg> ExpansionPanel<Msg>
impl<Msg> ExpansionPanel<Msg>
Sourcepub fn new(title: impl Into<String>, body: impl Widget<Msg> + 'static) -> Self
pub fn new(title: impl Into<String>, body: impl Widget<Msg> + 'static) -> Self
A panel with a title, hiding body.
Sourcepub fn with_header(
header: impl Widget<Msg> + 'static,
body: impl Widget<Msg> + 'static,
) -> Selfwhere
Msg: 'static,
pub fn with_header(
header: impl Widget<Msg> + 'static,
body: impl Widget<Msg> + 'static,
) -> Selfwhere
Msg: 'static,
A panel whose header is a widget — the reference’s headerBuilder, for a row
of chips, a rich span, a badge beside a name.
The chevron and the tap target stay the list’s: what this replaces is the line of text, not the row it sits in.
Auto Trait Implementations§
impl<Msg = Callback> !Freeze for ExpansionPanel<Msg>
impl<Msg = Callback> !RefUnwindSafe for ExpansionPanel<Msg>
impl<Msg = Callback> !Send for ExpansionPanel<Msg>
impl<Msg = Callback> !Sync for ExpansionPanel<Msg>
impl<Msg = Callback> !UnwindSafe for ExpansionPanel<Msg>
impl<Msg> Unpin for ExpansionPanel<Msg>
impl<Msg> UnsafeUnpin for ExpansionPanel<Msg>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more