table/utils/table-properties
@ckeditor/ckeditor5-table/src/utils/table-properties
Filtering
Functions
-
addDefaultUnitToNumericValue( value, defaultUnit ) → String | *
Adds a unit to a value if the value is a number or a string representing a number.
Note: It does nothing to non-numeric values.
Parameters
value : *
defaultUnit : String
A default unit added to a numeric value.
Returns
String | *
-
getNormalizedDefaultProperties( config, [ options ] = { [options.includeAlignmentProperty], [options.includePaddingProperty], [options.includeVerticalAlignmentProperty], [options.includeHorizontalAlignmentProperty], [options.isRightToLeftContent] } ) → Object
Returns the normalized configuration.
Parameters
config : Object
[ options ] : Object
-
Properties
[ options.includeAlignmentProperty ] : Boolean
Whether the "alignment" property should be added.
Defaults to
false
[ options.includePaddingProperty ] : Boolean
Whether the "padding" property should be added.
Defaults to
false
[ options.includeVerticalAlignmentProperty ] : Boolean
Whether the "verticalAlignment" property should be added.
Defaults to
false
[ options.includeHorizontalAlignmentProperty ] : Boolean
Whether the "horizontalAlignment" property should be added.
Defaults to
false
[ options.isRightToLeftContent ] : Boolean
Whether the content is right-to-left.
Defaults to
false
Defaults to
{}
Returns
Object
-
getSingleValue( objectOrString ) → BoxSides | String
Returns a string if all four values of box sides are equal.
If a string is passed, it is treated as a single value (pass-through).
Parameters
objectOrString
Returns
BoxSides | String
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.