Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
docs: add a table to explain parameters for responsive tables and videos
Browse files Browse the repository at this point in the history
This follows the same style used in the Trap Focus section, which
explains each parameter used in the `trapFocus` method.
  • Loading branch information
Maxime Vaillancourt committed Sep 18, 2017
1 parent 9718335 commit 7b9ddaa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/js-examples/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ $('#CloseModal').on('click', function() {

Tables and video embeds do not natively scale well on smaller screens. Slate adds a wrapper class to tables and video embeds that are loaded in from a rich text editor.

| Parameters | Type | Description |
| :------------------- | :------------ | :------------ |
| `$tables` | jQuery object | `<table>` elements to be made responsive |
| `tableWrapperClass` | string | CSS class to apply on the `<div>` that will wrap each targetted `<table>` element |
| `$iframes` | jQuery object | `<iframe>` elements to be made responsive |
| `iframeWrapperClass` | string | CSS class to apply on the `<div>` that will wrap each targetted `<iframe>` element |

```
// Wrap RTE tables to make them scrollable
var tableSelectors = '.rte table';
Expand Down

0 comments on commit 7b9ddaa

Please sign in to comment.