pub struct GridOptions {Show 38 fields
pub id: String,
pub title: Option<String>,
pub data: Vec<GridRecord>,
pub column_defs: Vec<GridColumnDef>,
pub labels: GridLabels,
pub icons: GridIcons,
pub enable_sorting: bool,
pub enable_filtering: bool,
pub enable_grouping: bool,
pub enable_column_moving: bool,
pub enable_column_resizing: bool,
pub enable_cell_edit: bool,
pub enable_cell_edit_on_focus: bool,
pub enable_virtualization: bool,
pub enable_pagination: bool,
pub enable_pagination_controls: bool,
pub use_external_pagination: bool,
pub pagination_page_sizes: Vec<usize>,
pub pagination_page_size: Option<usize>,
pub pagination_current_page: Option<usize>,
pub total_items: Option<usize>,
pub enable_expandable: bool,
pub expandable_row_height: Option<usize>,
pub expandable_row_header_width: Option<usize>,
pub enable_tree_view: bool,
pub tree_children_field: Option<String>,
pub tree_indent: Option<usize>,
pub show_tree_expand_no_children: bool,
pub tree_row_header_always_visible: bool,
pub enable_auto_resize: bool,
pub infinite_scroll_rows_from_end: Option<usize>,
pub infinite_scroll_up: bool,
pub infinite_scroll_down: Option<bool>,
pub virtualization_threshold: Option<usize>,
pub viewport_height: Option<usize>,
pub grouping: Option<GridGroupingOptions>,
pub enable_pinning: bool,
pub row_id_field: Option<String>,
}Fields§
§id: String§title: Option<String>§data: Vec<GridRecord>§column_defs: Vec<GridColumnDef>§labels: GridLabels§icons: GridIcons§enable_sorting: bool§enable_filtering: bool§enable_grouping: bool§enable_column_moving: bool§enable_column_resizing: bool§enable_cell_edit: bool§enable_cell_edit_on_focus: bool§enable_virtualization: bool§enable_pagination: bool§enable_pagination_controls: bool§use_external_pagination: bool§pagination_page_sizes: Vec<usize>§pagination_page_size: Option<usize>§pagination_current_page: Option<usize>§total_items: Option<usize>§enable_expandable: bool§expandable_row_height: Option<usize>§expandable_row_header_width: Option<usize>§enable_tree_view: bool§tree_children_field: Option<String>§tree_indent: Option<usize>§show_tree_expand_no_children: bool§tree_row_header_always_visible: bool§enable_auto_resize: bool§infinite_scroll_rows_from_end: Option<usize>§infinite_scroll_up: bool§infinite_scroll_down: Option<bool>§virtualization_threshold: Option<usize>§viewport_height: Option<usize>§grouping: Option<GridGroupingOptions>§enable_pinning: bool§row_id_field: Option<String>Trait Implementations§
Source§impl Clone for GridOptions
impl Clone for GridOptions
Source§fn clone(&self) -> GridOptions
fn clone(&self) -> GridOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GridOptions
impl Debug for GridOptions
Source§impl Default for GridOptions
impl Default for GridOptions
Source§impl<'de> Deserialize<'de> for GridOptions
impl<'de> Deserialize<'de> for GridOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GridOptions
impl PartialEq for GridOptions
Source§fn eq(&self, other: &GridOptions) -> bool
fn eq(&self, other: &GridOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GridOptions
impl Serialize for GridOptions
impl StructuralPartialEq for GridOptions
Auto Trait Implementations§
impl Freeze for GridOptions
impl RefUnwindSafe for GridOptions
impl Send for GridOptions
impl Sync for GridOptions
impl Unpin for GridOptions
impl UnsafeUnpin for GridOptions
impl UnwindSafe for GridOptions
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