pub struct DataTableSortControlsProps {
pub columns: Vec<DataTableColumn>,
pub sort: Option<DataTableSort>,
pub on_sort_change: EventHandler<Option<DataTableSort>>,
pub disabled: bool,
pub label: String,
pub direction_label: String,
pub ascending_label: String,
pub descending_label: String,
pub placeholder: String,
pub class: Option<String>,
pub attributes: Vec<Attribute>,
}Expand description
Props for DataTableSortControls.
Fields§
§columns: Vec<DataTableColumn>The table’s columns; only sortable ones are offered.
sort: Option<DataTableSort>The current primary criterion.
on_sort_change: EventHandler<Option<DataTableSort>>Called with the new criterion, or None for the default order.
disabled: boolDisables both controls.
label: StringSelect label. Defaults to Sort by.
direction_label: StringDirection button name prefix. Defaults to Sort direction.
ascending_label: StringAscending text. Defaults to Ascending.
descending_label: StringDescending text. Defaults to Descending.
placeholder: StringOption for no sort. Defaults to Default order.
class: Option<String>Extra classes appended after the Lumen class.
attributes: Vec<Attribute>Any other <div> or global attribute.
Implementations§
Source§impl DataTableSortControlsProps
impl DataTableSortControlsProps
Sourcepub fn builder() -> DataTableSortControlsPropsBuilder<((), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> DataTableSortControlsPropsBuilder<((), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building DataTableSortControlsProps.
On the builder, call .columns(...), .sort(...)(optional), .on_sort_change(...), .disabled(...)(optional), .label(...)(optional), .direction_label(...)(optional), .ascending_label(...)(optional), .descending_label(...)(optional), .placeholder(...)(optional), .class(...)(optional), .attributes(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of DataTableSortControlsProps.
Trait Implementations§
Source§impl Clone for DataTableSortControlsProps
impl Clone for DataTableSortControlsProps
Source§impl Properties for DataTableSortControlsPropswhere
Self: Clone,
impl Properties for DataTableSortControlsPropswhere
Self: Clone,
Source§type Builder = DataTableSortControlsPropsBuilder<((), (), (), (), (), (), (), (), (), (), ())>
type Builder = DataTableSortControlsPropsBuilder<((), (), (), (), (), (), (), (), (), (), ())>
Source§fn memoize(&mut self, new: &Self) -> bool
fn memoize(&mut self, new: &Self) -> bool
Source§fn into_vcomponent<M>(
self,
render_fn: impl ComponentFunction<Self, M>,
) -> VComponentwhere
M: 'static,
fn into_vcomponent<M>(
self,
render_fn: impl ComponentFunction<Self, M>,
) -> VComponentwhere
M: 'static,
impl StructuralPartialEq for DataTableSortControlsProps
Auto Trait Implementations§
impl !RefUnwindSafe for DataTableSortControlsProps
impl !Send for DataTableSortControlsProps
impl !Sync for DataTableSortControlsProps
impl !UnwindSafe for DataTableSortControlsProps
impl Forget for DataTableSortControlsProps
impl Freeze for DataTableSortControlsPropswhere
*const u8 is !null: Freeze,
PhantomData<DataTableColumn>: Freeze,
PhantomData<u8>: Freeze,
&'static UnsyncStorage: Freeze,
NonZero<u64>: Freeze,
&'static Location<'static>: Freeze,
PhantomData<Option<ExternalListenerCallback<Option<DataTableSort>, ()>>>: Freeze,
PhantomData<Attribute>: Freeze,
impl Move for DataTableSortControlsProps
impl Unpin for DataTableSortControlsPropswhere
*const u8 is !null: Unpin,
&'static UnsyncStorage: Unpin,
NonZero<u64>: Unpin,
&'static Location<'static>: Unpin,
Box<dyn FnMut((DataTableCell, DataTableRow)) -> Result<VNode, RenderError>>: Unpin,
*const RcInner<Runtime> is !null: Unpin,
Box<dyn FnMut(Option<DataTableSort>)>: Unpin,
&'static str: Unpin,
Rc<RefCell<dyn FnMut(Event<dyn Any>)>>: Unpin,
Rc<dyn AnyValue>: Unpin,
impl UnsafeUnpin for DataTableSortControlsPropswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<DataTableColumn>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static UnsyncStorage: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
&'static Location<'static>: UnsafeUnpin,
PhantomData<Option<ExternalListenerCallback<Option<DataTableSort>, ()>>>: UnsafeUnpin,
PhantomData<Attribute>: UnsafeUnpin,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DependencyElement for T
impl<T> ErasedDestructor for Twhere
T: 'static,
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
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> ⓘ
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> ⓘ
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