Skip to content

Commit

Permalink
Discuss 'css' versus 'style'
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Dec 4, 2022
1 parent 812d14c commit 7fba95a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/advanced_parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ show(
opt.lengthMenu = [5, 10, 20, 50, 100, 200, 500]
```

## Remove the search box
## Removing the search box

By default, datatables comes with a search box, a pagination control, a table summary, etc.
You can select which elements are actually displayed using
Expand Down
11 changes: 7 additions & 4 deletions docs/custom_css.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@ kernelspec:
name: itables
---

## Custom CSS
# Custom CSS

You can change the CSS used to render the tables
You can change the global CSS used to render the tables
by either passing a custom CSS to the `show` function, or by
changing `opt.css`. Note that the CSS must be the same for all the tables
in a given notebook.
changing `opt.css`.

Note that the CSS must be the same for all the tables
in a given notebook. To change the CSS for just one table,
use the [`style`](advanced_parameters.html#position-and-width) argument of the `show` function.

```{code-cell}
from itables import init_notebook_mode, show
Expand Down

0 comments on commit 7fba95a

Please sign in to comment.