# table/converters/tableproperties

module

<a id="constants">

## Constants

<a id="constant-DEFAULT_TABLE_ALIGNMENT_OPTIONS">

### `DEFAULT_TABLE_ALIGNMENT_OPTIONS: object`

Default table alignment options.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/converters/tableproperties.ts#L474)

<a id="constant-downcastTableAlignmentConfig">

### `downcastTableAlignmentConfig: Record<TableAlignmentValues, object>`

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/converters/tableproperties.ts#L633)

<a id="constant-upcastTableAlignmentConfig">

### `upcastTableAlignmentConfig: Array<UpcastTableAlignmentConfig>`

Configuration for upcasting table alignment from view to model.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/converters/tableproperties.ts#L485)

<a id="interfaces">

## Interfaces

<a id="interface-StyleValues">

### `StyleValues`

<a id="type-definitions">

## Type Definitions

<a id="typedef-TableAlignmentValues">

### `TableAlignmentValues`

<a id="functions">

## Functions

<a id="function-downcastAttributeToStyle">

### `downcastAttributeToStyle( conversion, options = { options.modelAttribute, options.modelElement, options.styleName } ) → void` _(internal)_

Conversion helper for downcasting an attribute to a style.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/converters/tableproperties.ts#L296)

#### Parameters

* `conversion: Conversion`

* `options: object`

  Properties

  * `options.modelAttribute: string`
  * `options.modelElement: string`
  * `options.styleName: string`

#### Returns

* `void`

<a id="function-downcastTableAttribute">

### `downcastTableAttribute( conversion, options = { options.modelAttribute, options.styleName } ) → void` _(internal)_

Conversion helper for downcasting attributes from the model table to a view table (not to `<figure>`).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/converters/tableproperties.ts#L325)

#### Parameters

* `conversion: Conversion`

* `options: object`

  Properties

  * `options.modelAttribute: string`
  * `options.styleName: string`

#### Returns

* `void`

<a id="function-getDefaultValueAdjusted">

### `getDefaultValueAdjusted( defaultValue, layoutTableDefault, data ) → string` _(internal)_

Returns the default value for table or table cell property adjusted for layout tables.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/converters/tableproperties.ts#L360)

#### Parameters

* `defaultValue: string`
* `layoutTableDefault: string`
* `data: UpcastConversionData<ViewElement>`

#### Returns

* `string`

<a id="function-upcastBorderStyles">

### `upcastBorderStyles( editor, viewElementName, modelAttributes, defaultBorder ) → void` _(internal)_

Conversion helper for upcasting border styles for view elements.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/converters/tableproperties.ts#L162)

#### Parameters

* `editor: Editor`

  The editor instance.

* `viewElementName: string`

* `modelAttributes: StyleValues`

* `defaultBorder: StyleValues`

  The default border values.

#### Returns

* `void`

<a id="function-upcastStyleToAttribute">

### `upcastStyleToAttribute( conversion, options = { options.attributeName?, options.attributeType?, options.defaultValue, options.modelAttribute, options.reduceBoxSides?, options.shouldUpcast?, options.styleName, options.viewElement } ) → void` _(internal)_

Conversion helper for upcasting attributes using normalized styles.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/converters/tableproperties.ts#L40)

#### 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`

<a id="function-upcastTableCellPaddingAttribute">

### `upcastTableCellPaddingAttribute( editor, viewElementName, defaultPadding? ) → void` _(internal)_

Conversion helper for upcasting the `cellpadding` table attribute.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/converters/tableproperties.ts#L409)

#### Parameters

* `editor: Editor`

  The editor instance.

* `viewElementName: string`

  The view element name that should be converted.

* `defaultPadding?: string`

  The default padding value.

#### Returns

* `void`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
