Boolean
$table-disable-everything: false !default;
Boolean
$table-disable-container: false !default;
Boolean
$table-disable-dense: false !default;
Boolean
$table-disable-full-width: false !default;
Boolean
$table-disable-cell-align-top: false !default;
Boolean
$table-disable-cell-align-bottom: false !default;
Boolean
$table-disable-bordered: false !default;
Boolean
$table-disable-bordered-except-last: false !default;
Boolean
$table-disable-selected: false !default;
Boolean
$table-disable-clickable: false !default;
Boolean
$table-disable-hoverable: false !default;
Boolean
$table-disable-sticky: false !default;
Boolean
$table-disable-sticky-cell: $disable-sticky !default;
Boolean
$table-disable-sticky-header: $disable-sticky !default;
Boolean
$table-disable-sticky-footer: $disable-sticky !default;
Boolean
$table-disable-input-toggle: false !default;
Boolean
$table-disable-cell-grow: false !default;
Boolean
$table-disable-cell-no-padding: false !default;
Boolean
$table-disable-cell-sort: false !default;
Boolean
$table-disable-cell-vertical-padding: false !default;
Color
$table-light-theme-background-color: null !default;
Color
$table-dark-theme-background-color: null !default;
Color
$table-background-color: theme.get-default-color(
$light-theme-background-color,
$dark-theme-background-color
) !default;
Color
$table-light-theme-border-color: #e0e0e0 !default;
Color
$table-dark-theme-border-color: #2f2f2f !default;
Color
$table-border-color: theme.get-default-color(
$light-theme-border-color,
$dark-theme-border-color
) !default;
Number
$table-border-size: divider.$size !default;
Color
$table-light-theme-header-background-color: null !default;
Color
$table-dark-theme-header-background-color: null !default;
Color
$table-header-background-color: theme.get-default-color(
$light-theme-header-background-color,
$dark-theme-header-background-color
) !default;
Map
$table-cell-typography: typography.$body-2-styles !default;
Color
$table-cell-color: theme.theme-get-var(text-primary-color) !default;
Number
$table-cell-height: 3.25rem !default;
Number
$table-cell-dense-height: 2rem !default;
Color
$table-cell-header-color: $cell-color !default;
Map
$table-cell-header-typography: (
font-weight: map.get(typography.$subtitle-2-styles, font-weight),
letter-spacing: map.get(typography.$subtitle-2-styles, letter-spacing),
line-height: map.get(typography.$subtitle-2-styles, line-height),
) !default;
Number
$table-cell-header-height: 3.5rem !default;
Number
$table-cell-header-dense-height: 2.125rem !default;
Number
$table-cell-horizontal-padding: spacing.get-var(md) !default;
Number
$table-cell-vertical-padding: calc(spacing.get-var(xs) * 1.5) !default;
Number
$table-cell-input-toggle-horizontal-padding: spacing.get-var(sm) !default;
Number
$table-cell-content-gap: spacing.get-var(sm) !default;
Number
$table-sticky-cell-position: 0 !default;
Number
$table-sticky-header-position: 0 !default;
Number
$table-sticky-header-z-index: 2 !default;
Number
$table-sticky-header-cell-z-index: $sticky-header-z-index + 1 !default;
Number
$table-sticky-cell-z-index: $sticky-header-z-index - 1 !default;
Number
$table-sticky-footer-position: 0 !default;
Number
$table-sticky-footer-z-index: $sticky-header-z-index - 1 !default;
Color
$table-sticky-background-color: theme.theme-get-var(background-color) !default;
Map
$table-sticky-header-inactive-styles: (
transition: background transition.$linear-duration
transition.$linear-timing-function,
"&::after": (
box-shadow: box-shadows.box-shadow(4),
content: "",
inset: 0,
pointer-events: none,
opacity: 0,
position: absolute,
transition: opacity transition.$linear-duration
transition.$linear-timing-function,
z-index: 0,
),
) !default;
Map
$table-sticky-header-active-styles: (
"--rmd-background-color": theme.get-dark-elevation-color(4),
background-color: theme.theme-get-var(background-color),
"&::after": (
opacity: 1,
),
) !default;
Map
$table-sticky-footer-inactive-styles: $sticky-header-inactive-styles !default;
Map
$table-sticky-footer-active-styles: $sticky-header-active-styles !default;
Color
$table-row-hover-color: interaction.get-var(hover-background-color) !default;
Color
$table-row-selected-color: interaction.get-var(selected-background-color) !default;
List
$table-variables: (
background-color,
border-size,
border-color,
header-background-color,
cell-color,
cell-height,
cell-horizontal-padding,
cell-vertical-padding,
header-cell-height,
hover-color,
selected-color,
sticky-cell,
sticky-header,
sticky-footer,
sticky-background-color
);
Map
$table-row-hover-styles: (
background-color: get-var(hover-color),
) !default;
Map
$table-row-selected-styles: (
background-color: get-var(selected-color),
) !default;
mixin
@mixin set-var($name, $value) { … }
mixin
@mixin use-var($property, $name: $property, $fallback: null) { … }
mixin
@mixin use-light-theme { … }
mixin
@mixin use-dark-theme { … }
mixin
@mixin variables { … }
mixin
@mixin styles($disable-layer: false) { … }
function
@function get-var($name, $fallback: null) { … }
String
Set to true
to disable all the styles.
Set to true
to disable the TableContainer
styles.
Set to true
to disable the dense Table
styles.
Set to true
to disable the fullWidth
behavior for the Table
component.
Set to true
to disable the align="top"
styles for the TableCell
.
Set to true
to disable the align="bottom"
styles for the TableCell
.
Set to true
to disable border styles for the TableRow
.
Set to true
to allow the last TableRow
to also gain the border styles.
Set to true
to disable the TableRow
selected styles.
Set to true
to disable the clickable TableRow
styles.
Set to true
to disable the hoverable TableRow
styles.
Set to true
to disable all sticky table styles.
Set to true
to disable all the sticky cell styles within the TableBody
.
Set to true
to disable the sticky TableHeader
styles.
Set to true
to disable the sticky TableFooter
styles.
Set to true
to disable the TableCheckbox
and TableRadio
styles.
Set to true
to disable the TableCell
grow
styles.
Set to true
to disable the padding="none"
TableCell
styles.
Set to true
to disable the TableCell
sort behavior styles.
Set to true
to disable the padding="vertical"
TableCell
styles.
An optional light theme background color to apply to the Table
. This defaults to null
so it just inherits the background color.
An optional dark theme background color to apply to the Table
. This defaults to null
so it just inherits the background color.
The default background-color
to apply to the Table
component.
The light theme border-color to apply to each TableRow
.
The dark theme border-color to apply to each TableRow
.
The default border-color to apply to each TableRow
.
The default border-width to apply to each TableRow
.
The default TableCell
typography styles.
The default TableCell
text color.
The default TableCell
height.
The default dense TableCell
height.
The default header (th) TableCell
text color.
The default header (th) TableCell
typography styles.
The default header (th) TableCell
height.
The default header (th) dense TableCell
height.
The default TableCell
horizontal padding.
The default TableCell
vertical padding.
The default TableCheckbox
and TableRadio
horizontal padding.
The default gap
between items in a sortable TableCell
.
This is the default position of a row based sticky TableCell
.
This is the default position of a column based sticky TableCell
.
The default z-index for a sticky header (th) TableCell
.
The default z-index for a TableCheckbox
or TableRadio
that is acting as a sticky table header for a column.
The default z-index for a sticky row-based TableCell
.
The default position for a sticky TableFooter
.
The default z-index for a sticky TableFooter
.
The background color to apply to a sticky table cell. This is required so that the other cells will not be visible below the cell.
A map of styles to apply when using the StickyTableSection
component with
type="header"
.
A map of styles to apply when using the StickyTableSection
component with
type="header"
. These are the styles that are applied once the
IntersectionObserver
considers the StickyTableSection
to be covering other content within the table due to scrolling.
A map of styles to apply when using the StickyTableSection
component with
type="footer"
.
A map of styles to apply when using the StickyTableSection
component with
type="footer"
. These are the styles that are applied once the
IntersectionObserver
considers the StickyTableSection
to be covering other content within the table due to scrolling.
The default TableRow
hover background-color.
The default TableRow
selected background-color.
The available configurable css variables and mostly used internally for the
get-var
, set-var
, and use-var
utils.
The default TableRow
hover styles.
The default TableRow
selected styles.
The supported variable name
The value to set the variable to. Supports null
which will just be a no-op.
The css property to apply the variable to
The supported variable name
An optional fallback value if the variable has not been set
Applies the light the variables based on feature flags
Applies the dark the variables based on feature flags
Conditionally applies the css variables based on feature flags
Generates all the styles based on feature flags.
Set this to true
to disable the layer behavior
a var()
statement
The supported variable name
An optional fallback value