# table/utils/ui/contextualballoon

module

<a id="functions">

## Functions

<a id="function-getBalloonCellPositionData">

### `getBalloonCellPositionData( editor ) → Partial<DomOptimalPositionOptions>` _(internal)_

Returns the positioning options that control the geometry of the [contextual balloon](module_ui_panel_balloon_contextualballoon-ContextualBalloon.md) with respect to the selected table cell in the editor content.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/utils/ui/contextualballoon.ts#L82)

#### Parameters

* `editor: Editor`

  The editor instance.

#### Returns

* `Partial<DomOptimalPositionOptions>`

<a id="function-getBalloonTablePositionData">

### `getBalloonTablePositionData( editor ) → Partial<DomOptimalPositionOptions>`

Returns the positioning options that control the geometry of the [contextual balloon](module_ui_panel_balloon_contextualballoon-ContextualBalloon.md) with respect to the selected table in the editor content.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/utils/ui/contextualballoon.ts#L63)

#### Parameters

* `editor: Editor`

  The editor instance.

#### Returns

* `Partial<DomOptimalPositionOptions>`

<a id="function-repositionContextualBalloon">

### `repositionContextualBalloon( editor, target ) → void` _(internal)_

A helper utility that positions the [contextual balloon](module_ui_panel_balloon_contextualballoon-ContextualBalloon.md) instance with respect to the table in the editor content, if one is selected.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/utils/ui/contextualballoon.ts#L37)

#### Parameters

* `editor: Editor`

  The editor instance.

* `target: string`

  Either "cell" or "table". Determines the target the balloon will be attached to.

#### Returns

* `void`

---

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