pub struct Footer { /* private fields */ }Expand description
Builder for action footers. Inserts FOOTER_GAP between entries only.
Implementations§
Sourcepub fn primary(self, key: &str, label: &str) -> Self
pub fn primary(self, key: &str, label: &str) -> Self
Add a primary action (semantic marker for the default action).
Sourcepub fn render_with_status(self, frame: &mut Frame<'_>, area: Rect, app: &App)
pub fn render_with_status(self, frame: &mut Frame<'_>, area: Rect, app: &App)
Render in an overlay footer (status right-aligned if present).
Sourcepub fn into_spans(self) -> Vec<Span<'static>>
pub fn into_spans(self) -> Vec<Span<'static>>
Raw spans for screens with custom footer rendering.
Trait Implementations§
Auto Trait Implementations§
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more