You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,7 @@ Returns a `PivotTableResult` dict containing the current `config` state.
101
101
|`on_cell_click`|`Callable[[], None] \| None`|`None`| Called when a user clicks a data cell. Read the payload from `st.session_state[key]`. |
102
102
|`on_config_change`|`Callable[[], None] \| None`|`None`| Called when the user changes the pivot config interactively, including toolbar and header-menu actions. |
103
103
|`enable_drilldown`|`bool`|`True`| Show an inline drill-down panel with source records when a cell is clicked. |
104
-
|`locked`|`bool`|`False`| Viewer mode with exploration enabled. Toolbar config controls and settings toggles are disabled, while header-menu sorting/filtering and drill-down remain available. |
104
+
|`locked`|`bool`|`False`| Viewer mode with exploration enabled. Toolbar config controls are read-only, viewer-safe actions like data export and group expand/collapse remain available, and header-menu sorting/filtering/`Show Values As` plus drill-down still work. |
105
105
|`export_filename`|`str \| None`|`None`| Base filename (without extension) for exported files. Date and extension are appended automatically. Defaults to `"pivot-table"`. |
106
106
107
107
#### Data Control
@@ -428,7 +428,7 @@ Hover over a parent column header to reveal the collapse toggle.
428
428
429
429
### Data Export
430
430
431
-
Export the pivot table as CSV, TSV, or copy to clipboard. Available via the toolbar utility menu (download icon) when `interactive=True`.
431
+
Export the pivot table as CSV, TSV, or copy to clipboard. Available via the toolbar utility menu (download icon) whenever the interactive toolbar is shown, including locked viewer mode.
432
432
433
433
-**Format**: CSV, TSV, or Clipboard (tab-separated for pasting into spreadsheets)
434
434
-**Content**: Formatted (display values with currency, percentages, etc.) or Raw (unformatted numbers)
@@ -458,7 +458,7 @@ result = st_pivot_table(
458
458
459
459
### Locked Mode
460
460
461
-
Use `locked=True` for a viewer-mode experience with exploration enabled. Toolbar config controls stay locked so end-users cannot change rows, columns, values, per-measure aggregation, or settings toggles. Reset, Swap, config import/export, and data export are hidden, while the Settings gear remains visible so users can inspect settings and use Expand/Collapse All group controls. Header-menu sortingand filtering remain available, and drill-down still works.
461
+
Use `locked=True` for a viewer-mode experience with exploration enabled. Toolbar config controls stay locked so end-users cannot change rows, columns, values, per-measure aggregation, or settings toggles. Reset, Swap, and config import/export are hidden, while data export remains available and the Settings gear stays visible for read-only display status plus Expand/Collapse All group controls. Header-menu sorting, filtering, and `Show Values As` remain available, and drill-down still works.
462
462
463
463
```python
464
464
st_pivot_table(
@@ -484,7 +484,7 @@ When `interactive=True`, hovering over the top-right of the toolbar reveals util
484
484
|**Export Data**| Open the export popover (CSV / TSV / Clipboard). Use `export_filename` to customize the download filename. |
485
485
|**Settings** (gear icon) | Opens a popover with display toggles: Row Totals, Column Totals, Subtotals, Repeat Labels, Sticky Headers, and Expand/Collapse All group controls |
486
486
487
-
In **locked mode**, Reset, Swap, config import/export, and data export are hidden. The Settings gear remains visible, settings toggles are disabled, group expand/collapse actions remain available, and header-menu sortingand filtering stay enabled.
487
+
In **locked mode**, Reset, Swap, and config import/export are hidden. `Export Data` remains available as a viewer action. The Settings gear remains visible, its popover shows read-only display status plus group expand/collapse actions, and header-menu sorting, filtering, and `Show Values As` stay enabled.
Copy file name to clipboardExpand all lines: SKILL.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ Returns a `PivotTableResult` dict containing the current `config` state.
111
111
|`on_cell_click`|`Callable[[], None] \| None`|`None`| Called when a user clicks a data cell. Read the payload from `st.session_state[key]`. See [Cell Click Payload](#cell-click-payload). |
112
112
|`on_config_change`|`Callable[[], None] \| None`|`None`| Called when the user changes the pivot config via the toolbar. |
113
113
|`enable_drilldown`|`bool`|`True`| Show an inline drill-down panel with source records when a cell is clicked. |
114
-
|`locked`|`bool`|`False`|Freeze toolbar config controls (rows/columns/values/aggregation/settings). The entire utility menu is hidden. Sorting and filtering via header menus remain available. |
114
+
|`locked`|`bool`|`False`|Viewer mode with exploration enabled. Toolbar config controls are read-only, while data export, group expand/collapse, and header-menu sorting/filtering/show-values-as remain available. |
115
115
|`export_filename`|`str \| None`|`None`| Base filename (without extension) for exported files. Date and extension are appended automatically. Defaults to `"pivot-table"`. |
116
116
117
117
#### Data Control
@@ -471,7 +471,7 @@ When `interactive=True`, hovering over the top-right of the toolbar reveals util
471
471
|**Export Data**| Open the export popover (CSV / TSV / Clipboard). Use `export_filename` to customize the download filename. |
472
472
|**Settings** (gear icon) | Opens a popover with display toggles: Row Totals, Column Totals, Subtotals, Repeat Labels, Sticky Headers, and Expand/Collapse All group controls |
473
473
474
-
In **locked mode**, Reset, Swap, config import/export, and data export are hidden. The Settings gear remains visible, its toggles are disabled, and sorting/filteringvia header menus remain available.
474
+
In **locked mode**, Reset, Swap, and config import/export are hidden while data export remains available. The Settings gear remains visible, its popover shows read-only view status plus group expand/collapse actions, and sorting/filtering/show-values-as remain available via header menus.
0 commit comments