Sign up (with export icon)

TableScrollConfig

Api-interface iconinterface

The configuration of the table scroll feature.

Properties

  • Chevron-right icon

    tableTypes : Array<TableType> | undefined

    The list of table types for which a table that is wider than its container is allowed to become horizontally scrollable, and for which the column resize handle is allowed to drag the table's width past 100% of the container width.

    By default, only 'content' tables are scrollable. Layout tables are not included by default, since letting a layout table grow past the container width can easily break the intended page layout - to allow it anyway, add 'layout' to the list:

    const tableConfig = {
    	tableScroll: {
    		tableTypes: [ 'content', 'layout' ]
    	}
    };
    
    Copy code

    Note that regardless of this setting, only a table that is a direct child of the editing root can become scrollable - a table nested inside another table, a block quote, or any other container never scrolls.

    Defaults to [ 'content' ]