table/utils/common
@ckeditor/ckeditor5-table/src/utils/common
Filtering
Functions
-
createEmptyTableCell( writer, insertPosition, attributes ) → Element
module:table/utils/common~createEmptyTableCell
A common method to create an empty table cell. It creates a proper model structure as a table cell must have at least one block inside.
Parameters
writer : Writer
The model writer.
insertPosition : Position
The position at which the table cell should be inserted.
attributes : Object
The element attributes.
Returns
Element
Created table cell.
-
enableProperty( schema, conversion, options = { options.modelAttribute, options.styleName, options.defaultValue, [options.reduceBoxSides] } )
module:table/utils/common~enableProperty
Enables conversion for an attribute for simple view-model mappings.
Parameters
schema : Schema
conversion : Conversion
options : Object
-
Properties
options.modelAttribute : String
options.styleName : String
options.defaultValue : String
The default value for the specified
modelAttribute
.[ options.reduceBoxSides ] : Boolean
-
Defaults to
false
-
isHeadingColumnCell( tableUtils, tableCell ) → Boolean
module:table/utils/common~isHeadingColumnCell
Checks if a table cell belongs to the heading column section.
Parameters
tableUtils : TableUtils
tableCell : Element
Returns
Boolean
-
updateNumericAttribute( key, value, item, writer, defaultValue )
module:table/utils/common~updateNumericAttribute
A common method to update the numeric value. If a value is the default one, it will be unset.
Parameters
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing? Please report it via our issue tracker.