Skip to content

Commit 6937ccd

Browse files
authored
docs: Update note on style keys allowing for kebab-case (#1595)
1 parent 1d62592 commit 6937ccd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

shiny/render/_data_frame_utils/_datagridtable.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ class DataGrid(AbstractTabularData, Generic[DataFrameLikeT]):
9090
* `cols`: The column numbers to which the style should be applied. If `None`,
9191
the style will be applied to all columns.
9292
* `style`: A dictionary of CSS properties and values to apply to the selected
93-
rows and columns. The keys must be _camelCased_ CSS property names to work
94-
properly with react.js (e.g. `backgroundColor` instead of
95-
`background-color`).
93+
rows and columns. Traditional _kebab-cased_ CSS property names (e.g.
94+
`background-color`) will work in addition to _camelCased_ CSS property names
95+
(e.g. `backgroundColor`).
9696
* `class`: A string of CSS class names to apply to the selected rows and columns.
9797
9898
If both `style` and `class` are missing or `None`, nothing will be applied. If
@@ -249,9 +249,9 @@ class DataTable(AbstractTabularData, Generic[DataFrameLikeT]):
249249
* `cols`: The column numbers to which the style should be applied. If `None`,
250250
the style will be applied to all columns.
251251
* `style`: A dictionary of CSS properties and values to apply to the selected
252-
rows and columns. The keys must be _camelCased_ CSS property names to work
253-
properly with react.js (e.g. `backgroundColor` instead of
254-
`background-color`).
252+
rows and columns. Traditional _kebab-cased_ CSS property names (e.g.
253+
`background-color`) will work in addition to _camelCased_ CSS property names
254+
(e.g. `backgroundColor`).
255255
* `class`: A string of CSS class names to apply to the selected rows and columns.
256256
257257
If both `style` and `class` are missing or `None`, nothing will be applied. If

0 commit comments

Comments
 (0)