docstring fixes

This commit is contained in:
Aran-Fey
2024-09-27 10:49:12 +02:00
parent 98cd3120aa
commit 0d397ecb21
2 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ class ColorPicker(FundamentalComponent):
```python
class MyComponent(rio.Component):
selected_color: rio.Color = rio.Color.from_hex("#ff0000") # Red
selected_color: rio.Color = rio.Color.from_hex("#ff0000") # Red
def print_selected_color(self, event: rio.ColorChangeEvent) -> None:
self.selected_color = event.color
+8 -7
View File
@@ -240,13 +240,13 @@ class Table(FundamentalComponent):
A simple table with some data:
```python
rio.Table(
data={
"Name": ["Alice", "Bob", "Charlie"],
"Age": [25, 30, 35],
"City": ["New York", "San Francisco", "Los Angeles"],
}
)
rio.Table(
data={
"Name": ["Alice", "Bob", "Charlie"],
"Age": [25, 30, 35],
"City": ["New York", "San Francisco", "Los Angeles"],
}
)
```
Indexing into a table to apply styling works similar as numpy arrays.
@@ -271,6 +271,7 @@ class Table(FundamentalComponent):
return table
## Metadata
`experimental`: True