# TablePropertiesConfig

interface

The configuration of the table properties user interface (balloon).

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

<a id="properties">

## Properties

<a id="member-alignment">

### `alignment?: TableAlignmentConfig`

Configuration of the table alignment behavior in the editor output.

```typescript
const tableConfig = {
	tableProperties: {
		alignment: {
			useInlineStyles: true // Use inline styles instead of CSS classes
		}
	}
};
```

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

<a id="member-backgroundColors">

### `backgroundColors?: TableColorConfig`

The color palette for the table background color picker.

```typescript
const tableConfig = {
	tableProperties: {
		backgroundColors: [
			{
				color: 'hsl(0, 0%, 100%)',
				label: 'White',
				hasBorder: true
			},
			{
				color: 'hsl(120, 75%, 60%)',
				label: 'Green'
			}
		]
	}
};
```

**Note**: This configuration only affects the UI. It does not limit or filter the colors in the data.

Defaults to [`defaultColors`](module_table_utils_ui_table-properties.md#constant-defaultColors).

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

#### Related:

* [TableColorConfig](module_table_tableconfig-TableColorConfig.md)

<a id="member-borderColors">

### `borderColors?: TableColorConfig`

The color palette for the table border color picker.

```typescript
const tableConfig = {
	tableProperties: {
		borderColors: [
			{
				color: 'hsl(0, 0%, 0%)',
				label: 'Black'
			},
			{
				color: 'hsl(0, 0%, 100%)',
				label: 'White',
				hasBorder: true
			}
		]
	}
};
```

**Note**: This configuration only affects the UI. It does not limit or filter the colors in the data.

Defaults to [`defaultColors`](module_table_utils_ui_table-properties.md#constant-defaultColors).

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

#### Related:

* [TableColorConfig](module_table_tableconfig-TableColorConfig.md)

<a id="member-colorPicker">

### `colorPicker?: false | ColorPickerConfig`

Configuration of the color picker in the table properties balloon.

If set to `false` the picker will not appear.

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

<a id="member-defaultProperties">

### `defaultProperties?: TablePropertiesOptions`

Default styles for newly created tables.

```typescript
const tableConfig = {
	tableProperties: {
		defaultProperties: {
			borderStyle: 'dashed',
			borderColor: 'hsl(0, 0%, 90%)',
			borderWidth: '3px',
			alignment: 'left',
			width: '550px',
			height: '450px'
		}
	}
}
```

**Note**: The model does not store the default values. The editor will only keep values that differ from the defaults.

See [`TablePropertiesOptions`](module_table_tableconfig-TablePropertiesOptions.md) for the full list of properties.

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

---

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