If you have technical questions, please create a support ticket in the DevExpress Support Center.
Manage Tables with the Built-in Toolbar
To manage tables via a built-in toolbar, add the following items to it:
-
"insertTable" / "deleteTable"
Manage a table. -
"insertRowAbove" / "insertRowBelow" / "deleteRow"
Manage rows. -
"insertColumnLeft" / "insertColumnRight" / "deleteColumn"
Manage columns. -
"tableProperties" / "cellProperties"
Open a pop-up window with table or cell customization options.
Manage Tables with the Context Menu
To manage table layouts with the context menu, set the tableContextMenu.enabled property to true. In this demo, you can click the Enable Table Context Menu check box under the HtmlEditor to enable or disable this property. When it is enabled, right-click a table cell to open the context menu.
The context menu cannot be used to create new tables. The menu is only available within table boundaries. If you want users to create tables, add an "insertTable" item to the toolbar.
If you need to customize menu commands, override the tableContextMenu.items array. Refer to its description for a code example.
Manage Tables Programmatically
You can perform table-related actions in code. Use the getModule method to access the Table module. This module contains methods with names that match toolbar item names listed above. Refer to the following topic for the complete method list and code examples: DevExtreme Quill modules: Table.
Resize Tables
If you want to resize table rows and columns, set the tableResizing.enabled property to true. In this demo, you can use the Allow Table Resizing check box to change the property value.
You can also set the tableResizing.minColumnWidth and tableResizing.minRowHeight properties to specify minimum column width and row height. If you do not set these properties, width and height are determined by cell content. This demo illustrates the latter behavior (when you reduce column width or row height to small values).