pub struct TableColumn {
pub key: SharedString,
pub label: SharedString,
pub header: Option<AnyElement>,
pub width: Option<Pixels>,
pub min_width: Pixels,
pub align: TableAlign,
pub sortable: bool,
}Fields§
§key: SharedString§label: SharedString§header: Option<AnyElement>§width: Option<Pixels>§min_width: Pixels§align: TableAlign§sortable: boolImplementations§
Source§impl TableColumn
impl TableColumn
pub fn new(key: impl Into<SharedString>, label: impl Into<SharedString>) -> Self
pub fn header(self, header: impl IntoElement) -> Self
pub fn width(self, width: impl Into<Pixels>) -> Self
pub fn width_sm(self) -> Self
pub fn min_width(self, width: impl Into<Pixels>) -> Self
pub fn min_width_lg(self) -> Self
pub fn align(self, align: TableAlign) -> Self
pub fn sortable(self) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for TableColumn
impl !Send for TableColumn
impl !Sync for TableColumn
impl !UnwindSafe for TableColumn
impl Freeze for TableColumn
impl Unpin for TableColumn
impl UnsafeUnpin for TableColumn
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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