table/converters/tableproperites
@ckeditor/ckeditor5-table/src/converters/tableproperites
Filtering
Functions
-
downcastAttributeToStyle( conversion, options = { options.modelElement, options.modelAttribute, options.styleName } )module:table/converters/tableproperites~downcastAttributeToStyleConversion helper for downcasting an attribute to a style.
Parameters
conversion : Conversionoptions : Object-
Properties
options.modelElement : Stringoptions.modelAttribute : Stringoptions.styleName : String
-
downcastTableAttribute( conversion, options = { options.modelAttribute, options.styleName } )module:table/converters/tableproperites~downcastTableAttributeConversion helper for downcasting attributes from the model table to a view table (not to
<figure>).Parameters
conversion : Conversionoptions : Object-
Properties
options.modelAttribute : Stringoptions.styleName : String
-
upcastBorderStyles( conversion, viewElementName, modelAttributes, defaultBorder = { defaultBorder.color, defaultBorder.style, defaultBorder.width } )module:table/converters/tableproperites~upcastBorderStylesConversion helper for upcasting border styles for view elements.
Parameters
conversion : ConversionviewElementName : StringmodelAttributes : ObjectdefaultBorder : ObjectThe default border values.
PropertiesdefaultBorder.color : StringThe default
borderColorvalue.defaultBorder.style : StringThe default
borderStylevalue.defaultBorder.width : StringThe default
borderWidthvalue.
-
upcastStyleToAttribute( conversion, options = { options.modelAttribute, options.styleName, options.viewElement, options.defaultValue, [options.reduceBoxSides], [options.shouldUpcast] } )module:table/converters/tableproperites~upcastStyleToAttributeConversion helper for upcasting attributes using normalized styles.
Parameters
conversion : Conversionoptions : Object-
Properties
options.modelAttribute : StringThe attribute to set.
options.styleName : StringThe style name to convert.
options.viewElement : StringThe view element name that should be converted.
options.defaultValue : StringThe default value for the specified
modelAttribute.[ options.reduceBoxSides ] : Boolean-
Defaults to
false [ options.shouldUpcast ] : functionThe function which returns
trueif style should be upcasted from this element.
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.