mirror of
https://github.com/rio-labs/rio.git
synced 2026-05-21 03:58:31 -05:00
docstring fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user