Skip to content

Commit

Permalink
be sure to embed_css
Browse files Browse the repository at this point in the history
  • Loading branch information
machow committed Aug 2, 2024
1 parent deae5de commit f05c5a7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/get-started/controls-pagination.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ title: Pagination
---

```{python}
from reactable import Reactable
from reactable import Reactable, embed_css
from reactable.data import cars_93
embed_css()
```

You can change the default page size by configuring `default_page_size`:
Expand Down
4 changes: 3 additions & 1 deletion docs/get-started/controls-resizing.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ title: Column resizing
---

```{python}
from reactable import Reactable, Column, ColGroup
from reactable import Reactable, Column, ColGroup, embed_css
from reactable.data import cars_93
embed_css()
```

You can make columns resizable by setting `resizable=True`:
Expand Down
4 changes: 3 additions & 1 deletion docs/get-started/controls-searching.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ title: Searching
---

```{python}
from reactable import Reactable
from reactable import Reactable, embed_css
from reactable.data import cars_93
embed_css()
```

You can make the entire table searchable by setting `searchable=True`:
Expand Down
2 changes: 1 addition & 1 deletion docs/get-started/structure-details.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ penguins = load_penguins()
pl_penguins = pl.from_pandas(penguins)
```

You can make rows expandable with additional content through details, which takes an R or JavaScript render function. See [Custom Rendering](./format-custom-rendering.qmd) for details on how to use render functions.
You can make rows expandable with additional content through details, which takes an Python or JavaScript render function. See [Custom Rendering](./format-custom-rendering.qmd) for details on how to use render functions.

## Render details with Python

Expand Down

0 comments on commit f05c5a7

Please sign in to comment.