table/converters/tableproperties
module
Interfaces
-
module:table/converters/tableproperties~StyleValues
Functions
-
downcastAttributeToStyle( conversion, options = { options.modelAttribute, options.modelElement, options.styleName } ) → void
internalmodule:table/converters/tableproperties~downcastAttributeToStyle
Conversion helper for downcasting an attribute to a style.
Parameters
conversion : Conversion
options : object
-
Properties
options.modelAttribute : string
options.modelElement : string
options.styleName : string
Returns
void
-
downcastTableAttribute( conversion, options = { options.modelAttribute, options.styleName } ) → void
internalmodule:table/converters/tableproperties~downcastTableAttribute
Conversion helper for downcasting attributes from the model table to a view table (not to
<figure>
).Parameters
conversion : Conversion
options : object
-
Properties
options.modelAttribute : string
options.styleName : string
Returns
void
-
getDefaultValueAdjusted( defaultValue, layoutTableDefault, data ) → string
internalmodule:table/converters/tableproperties~getDefaultValueAdjusted
Returns the default value for table or table cell property adjusted for layout tables.
Parameters
defaultValue : string
layoutTableDefault : string
data : UpcastConversionData<ViewElement>
Returns
string
-
upcastBorderStyles( conversion, viewElementName, modelAttributes, defaultBorder ) → void
internalmodule:table/converters/tableproperties~upcastBorderStyles
Conversion helper for upcasting border styles for view elements.
Parameters
conversion : Conversion
viewElementName : string
modelAttributes : StyleValues
defaultBorder : StyleValues
The default border values.
Returns
void
-
upcastStyleToAttribute( conversion, options = { [options.attributeName], [options.attributeType], options.defaultValue, options.modelAttribute, [options.reduceBoxSides], [options.shouldUpcast], options.styleName, options.viewElement } ) → void
internalmodule:table/converters/tableproperties~upcastStyleToAttribute
Conversion helper for upcasting attributes using normalized styles.
Parameters
conversion : Conversion
options : object
-
Properties
[ options.attributeName ] : string
The HTML attribute name to convert.
[ options.attributeType ] : 'length' | 'color'
The HTML attribute type for value normalization.
options.defaultValue : string
The default value for the specified
modelAttribute
.options.modelAttribute : string
The attribute to set.
[ options.reduceBoxSides ] : boolean
[ options.shouldUpcast ] : ( viewElement: ViewElement ) => boolean
The function which returns
true
if style should be upcasted from this element.options.styleName : string
The style name to convert.
options.viewElement : string | RegExp
The view element name that should be converted.
Returns
void