pub struct TableConfig {
pub name: String,
pub display_name: String,
pub range: String,
pub columns: Vec<TableColumn>,
pub show_header_row: bool,
pub style_name: Option<String>,
pub auto_filter: bool,
pub show_first_column: bool,
pub show_last_column: bool,
pub show_row_stripes: bool,
pub show_column_stripes: bool,
}Expand description
Configuration for creating a table.
When any column sets totals_row_function or totals_row_label, the
table gets a totals row: range must then include it as its last row
(header, at least one data row, totals row), the auto-filter covers the
range without the totals row, and add_table writes each label or
SUBTOTAL formula into the totals row cells.
Fields§
§name: StringThe table name (used internally, must be unique within the workbook).
display_name: StringThe display name shown in the UI.
range: StringThe cell range (e.g. “A1:D10”), including the header row and, when present, the totals row.
columns: Vec<TableColumn>Column definitions.
show_header_row: boolWhether to show the header row. Defaults to true.
style_name: Option<String>The table style name (e.g. “TableStyleMedium2”).
auto_filter: boolWhether to enable auto-filter on the table.
show_first_column: boolWhether to show first column formatting.
show_last_column: boolWhether to show last column formatting.
show_row_stripes: boolWhether to show row stripes.
show_column_stripes: boolWhether to show column stripes.
Trait Implementations§
Source§impl Clone for TableConfig
impl Clone for TableConfig
Source§fn clone(&self) -> TableConfig
fn clone(&self) -> TableConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more