# table/utils/ui/widget

module

<a id="functions">

## Functions

<a id="function-getSelectedTableWidget">

### `getSelectedTableWidget( selection ) → ViewElement | null` _(internal)_

Returns a table widget editing view element if one is selected.

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

#### Parameters

* `selection: ViewDocumentSelection`

#### Returns

* `ViewElement | null`

<a id="function-getSelectionAffectedTableWidget">

### `getSelectionAffectedTableWidget( selection ) → ViewElement | null` _(internal)_

Depending on the position of the selection either return the selected table or the table higher in the hierarchy.

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

#### Parameters

* `selection: ViewDocumentSelection`

#### Returns

* `ViewElement | null`

<a id="function-getTableWidgetAncestor">

### `getTableWidgetAncestor( selection ) → ViewElement | null` _(internal)_

Returns a table widget editing view element if one is among the selection's ancestors.

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

#### Parameters

* `selection: ViewDocumentSelection`

#### Returns

* `ViewElement | null`

<a id="function-isTableWidget">

### `isTableWidget( viewNode ) → boolean` _(internal)_

Checks if a given view element is a table widget.

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

#### Parameters

* `viewNode: ViewNode`

#### Returns

* `boolean`

---

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