Struct freya_components::TableCellProps
source · pub struct TableCellProps<'a> {
pub children: Element<'a>,
pub onclick: Option<EventHandler<'a, MouseEvent>>,
pub order_direction: Option<Option<OrderDirection>>,
pub padding: String,
pub height: String,
}
Expand description
TableCell
component properties.
Fields§
§children: Element<'a>
The content of this cell.
onclick: Option<EventHandler<'a, MouseEvent>>
Onclick event handler for the TableCell.
order_direction: Option<Option<OrderDirection>>
The direction in which this TableCell’s column will be ordered.
padding: String
The padding of the cell.
height: String
The height of the cell.
Implementations§
source§impl<'a> TableCellProps<'a>
impl<'a> TableCellProps<'a>
sourcepub fn builder() -> TableCellPropsBuilder<'a, ((), (), (), (), ())>
pub fn builder() -> TableCellPropsBuilder<'a, ((), (), (), (), ())>
Create a builder for building TableCellProps
.
On the builder, call .children(...)
(optional), .onclick(...)
(optional), .order_direction(...)
(optional), .padding(...)
(optional), .height(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of TableCellProps
.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for TableCellProps<'a>
impl<'a> !Send for TableCellProps<'a>
impl<'a> !Sync for TableCellProps<'a>
impl<'a> Unpin for TableCellProps<'a>
impl<'a> !UnwindSafe for TableCellProps<'a>
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