From 7fba95a5a8d4d7412901e608d15fac765693c2c2 Mon Sep 17 00:00:00 2001 From: Marc Wouts Date: Sun, 4 Dec 2022 18:12:42 +0000 Subject: [PATCH] Discuss 'css' versus 'style' --- docs/advanced_parameters.md | 2 +- docs/custom_css.md | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/advanced_parameters.md b/docs/advanced_parameters.md index 0dd8ace7..476ebdd4 100644 --- a/docs/advanced_parameters.md +++ b/docs/advanced_parameters.md @@ -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 diff --git a/docs/custom_css.md b/docs/custom_css.md index 48bf28c8..bc0f00bf 100644 --- a/docs/custom_css.md +++ b/docs/custom_css.md @@ -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