pub struct Column {
pub id: &'static str,
pub header: &'static str,
pub accessor: Callback<()>,
pub sortable: bool,
pub min_width: u32,
pub style: Option<&'static str>,
pub class: Option<&'static str>,
}
Available on crate feature
yew
only.Expand description
Represents a column in the table with customization options.
Fieldsยง
ยงid: &'static str
Unique identifier for the column.
header: &'static str
Header text displayed at the top of the column.
accessor: Callback<()>
Callback triggered when accessing column data; can be used for custom rendering.
sortable: bool
Determines if the column is sortable.
min_width: u32
Minimum width of the column in pixels.
style: Option<&'static str>
Optional inline style string for the column header.
class: Option<&'static str>
Optional class name(s) for the column header.
Trait Implementationsยง
Sourceยงimpl Properties for Column
impl Properties for Column
impl StructuralPartialEq for Column
Auto Trait Implementationsยง
impl Freeze for Column
impl !RefUnwindSafe for Column
impl !Send for Column
impl !Sync for Column
impl Unpin for Column
impl !UnwindSafe for Column
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Sourceยงfn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
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> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Sourceยงfn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Sourceยงimpl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Sourceยงfn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.Sourceยงimpl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Sourceยงimpl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Sourceยงfn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Sourceยงimpl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Sourceยงfn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.