table/converters/tableproperties
module
Interfaces
module:table/converters/tableproperties~StyleValues
Functions
downcastAttributeToStyle( conversion, options = { options.modelAttribute, options.modelElement, options.styleName } ) → voidinternalmodule:table/converters/tableproperties~downcastAttributeToStyleConversion helper for downcasting an attribute to a style.
Parameters
conversion : Conversionoptions : object- Properties
options.modelAttribute : stringoptions.modelElement : stringoptions.styleName : string
Returns
void
downcastTableAttribute( conversion, options = { options.modelAttribute, options.styleName } ) → voidinternalmodule:table/converters/tableproperties~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
Returns
void
getDefaultValueAdjusted( defaultValue, layoutTableDefault, data ) → stringinternalmodule:table/converters/tableproperties~getDefaultValueAdjustedReturns the default value for table or table cell property adjusted for layout tables.
Parameters
defaultValue : stringlayoutTableDefault : stringdata : UpcastConversionData<ViewElement>
Returns
string
upcastBorderStyles( conversion, viewElementName, modelAttributes, defaultBorder ) → voidinternalmodule:table/converters/tableproperties~upcastBorderStylesConversion helper for upcasting border styles for view elements.
Parameters
conversion : ConversionviewElementName : stringmodelAttributes : StyleValuesdefaultBorder : StyleValuesThe default border values.
Returns
void
upcastStyleToAttribute( conversion, options = { [options.attributeName], [options.attributeType], options.defaultValue, options.modelAttribute, [options.reduceBoxSides], [options.shouldUpcast], options.styleName, options.viewElement } ) → voidinternalmodule:table/converters/tableproperties~upcastStyleToAttributeConversion helper for upcasting attributes using normalized styles.
Parameters
conversion : Conversionoptions : object- Properties
[ options.attributeName ] : stringThe HTML attribute name to convert.
[ options.attributeType ] : 'length' | 'color'The HTML attribute type for value normalization.
options.defaultValue : stringThe default value for the specified
modelAttribute.options.modelAttribute : stringThe attribute to set.
[ options.reduceBoxSides ] : boolean[ options.shouldUpcast ] : ( viewElement: ViewElement ) => booleanThe function which returns
trueif style should be upcasted from this element.options.styleName : stringThe style name to convert.
options.viewElement : string | RegExpThe view element name that should be converted.
Returns
void