Skip to main content

GridOptions

Struct GridOptions 

Source
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

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for GridOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for GridOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for GridOptions

Source§

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

Source§

fn eq(&self, other: &GridOptions) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for GridOptions

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for GridOptions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,