Skip to content

Commit

Permalink
Fix - docs: Remove note about using -init scrollX with anything oth…
Browse files Browse the repository at this point in the history
…er than a boolean

https://datatables.net/forums/discussion/60767/headers-not-aligned-in-datatable#latest

Only a boolean value is now supported. To constrain the table horizontally, apply the constraint to the container element.
  • Loading branch information
AllanJard committed Apr 6, 2022
1 parent 8e370b0 commit f36c65f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/option/scrollX.xml
Expand Up @@ -14,8 +14,6 @@

<description>
Enable horizontal scrolling. When a table is too wide to fit into a certain layout, or you have a large number of columns in the table, you can enable horizontal (x) scrolling to show the table in a viewport, which can be scrolled.

This property can be `true` which will allow the table to scroll horizontally when needed (recommended), or any CSS unit, or a number (in which case it will be treated as a pixel measurement).
</description>

<example title="Enable horizontal scrolling"><![CDATA[
Expand All @@ -26,4 +24,4 @@ $('#example').dataTable( {

<related type="option">scrollY</related>
<related type="option">scrollCollapse</related>
</dt-option>
</dt-option>

0 comments on commit f36c65f

Please sign in to comment.