UNPKG

822 BTypeScriptView Raw
1/**
2 * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4 */
5/**
6 * @module table/converters/table-headings-refresh-handler
7 */
8import type { EditingController, Model } from 'ckeditor5/src/engine';
9/**
10 * A table headings refresh handler which marks the table cells or rows in the differ to have it re-rendered
11 * if the headings attribute changed.
12 *
13 * Table heading rows and heading columns are represented in the model by a `headingRows` and `headingColumns` attributes.
14 *
15 * When table headings attribute changes, all the cells/rows are marked to re-render to change between `<td>` and `<th>`.
16 */
17export default function tableHeadingsRefreshHandler(model: Model, editing: EditingController): void;