Dash-table

Latest version: v5.0.0

Safety actively analyzes 688944 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 11 of 15

3.1.0rc6

Added
- Styling API refactoring

- Remove column width / maxWidth / minWidth
- Rename property table_style to css

Cell: All table cells
Data: All data driven cells (no operations, headers, filters)
Filter: All basic filter cells
Header: All header cells

Priority
Data: style_data_conditional > style_data > style_cell_conditional > style_cell
Filter: style_filter_conditional > style_filter > style_cell_conditional > style_cell
Header: style_header_conditional > style_header > style_cell_conditional > style_cell

Merge Logic
Only properties defined at a higher priority level will override properties
defined at lower priority levels. For example if A is applied then B, A+B will be..

A = {
background_color: 'floralwhite',
color: 'red',
font_type: 'monospace',
width: 100
}

B = {
color: 'black',
font_size: 22
}

A+B = {
background_color: 'floralwhite', // from A, not overridden
color: 'black', // from B, A overridden
font_size: 22, // from B
font_type: 'monospace', // from A
width: 100 // from A
}

- Add new property style_table of form
{ ...CSSProperties }
- Add new property style_cell of form
{ ...CSSProperties }
- Add new property style_data of form
{ ...CSSProperties }
- Add new property style_filter of form
{ ...CSSProperties }
- Add new property style_header of form
{ ...CSSProperties }
- Add new property style_cell_conditional of form
[{
if: { column_id: string | number },
...CSSProperties
}]
- Add new property style_data_conditional of form
[{
if: { column_id: string | number, filter: string, row_index: number | 'odd' | 'even' },
...CSSProperties
}]
- Add new property style_filter_conditional of form
[{
if: { column_id: string | number },
...CSSProperties
}]
- Add new property style_header_conditional of form
[{
if: { column_id: string | number, header_index: number | 'odd' | 'even' },
...CSSProperties
}]
- All CSSProperties are supported in kebab-case, camelCase and snake_case

Changed
- Renaming 'dataframe' props to 'data'
dataframe -> data
dataframe_previous -> data_previous
dataframe_timestamp -> data_timestamp
derived_virtual_dataframe -> derived_virtual_data
derived_viewport_dataframe -> derived_viewport_data

3.1.0rc5

Fixed
- Tests and fixes for editable/readonly [134](https://github.com/plotly/dash-table/pull/134) [#132](https://github.com/plotly/dash-table/issues/132)

3.1.0rc4

Added
Columns width percentage and default (fit to content) support
- Added prop content_style that takes values 'fit' or 'grow' (Default='fit')
- Added width percentage support
- Modified default column behavior from fixed width to 'fit content'
- Modified width, min-width, max-width interaction on columns

Width percentage

Columns can now accept '%' width, minWidth, maxWidth

For the percentages to have meaning, the dash-table must be forced to have a width and the content of the dash-table must be forced to grow to fill the available space made available by the container (by default the table is only as big as it needs to be).

To use percentage-based column widths, add:

- content style
content_style='grow'

- table style (example)
table_style=[{ selector: '.dash-spreadsheet', rule: 'width: 100%; max-width: 100%' }]

- column with %-based width
columns=[{
id: 'column',
width: '40%'
}]

Default column width

Columns now default to 'fit to content' when no width is defined
Note: If pagination is used or the dataframe modified, the column width will be re-evaluated on each modification.

Interaction between width, min-width and max-width

Column min-width and max-width do not default to width value is not defined.

3.1.0rc3

Fixed
- Miscellaneous fixes for pagination, virtual df and viewport df [112](https://github.com/plotly/dash-table/pull/112)

3.1.0rc2

Changed
- 1 new internal facing derived/controlled property:
columns: Columns -> columns: VisibleColumns
Gets rid of conditional processing for hidden columns in the cell and header factories as well as in navigation/selection handlers

Clean up column offsets
- A bunch of offsets were introduced to the table in the previous development cycle (2.x -> 3.0). Turns out these offsets are neither useful or necessary


Validate compatibility of filtering, sorting, pagination

External facing classes and attributes
- (ATTRIBUTE) data-dash-column=<columnId>

.dash-cell,
.dash-header {
&[data-dash-column='ticker'] {
// styling
}
}

- (CLASS) dash-cell
- (CLASS) dash-header

- (CLASS) dash-delete-cell
- (CLASS) dash-delete-header
- (CLASS) dash-select-cell
- (CLASS) dash-select-header

- (CLASS) dash-cell-value

- (CLASS) dash-freeze-left
- (CLASS) dash-freeze-top
- (CLASS) dash-spreadsheet
- (CLASS) dash-spreadsheet-container
- (CLASS) dash-spreadsheet-inner

3.1.0rc1

Added

Page 11 of 15

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.