---
title: "UIButtonGroup"
---
# UIButtonGroup

Defined in: [src/core/ui/button/group/group.ts:25](https://github.com/xdan/jodit/blob/main/src/core/ui/button/group/group.ts#L25)

The base class of all Jodit UI components. Provides work with a life cycle.

## Extends

- [`UIGroup`](./ui_group.UIGroup.html)

### Constructor

**new UIButtonGroup**(`jodit`, `options?`): `UIButtonGroup`

Defined in: [src/core/ui/button/group/group.ts:50](https://github.com/xdan/jodit/blob/main/src/core/ui/button/group/group.ts#L50)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `jodit` | [`IViewBased`](../interfaces/types.IViewBased.html) |
| `options` | \{ `name?`: `string`; `value?`: `string` \| `number` \| `boolean`; `label?`: `string`; `onChange?`: (`values`) => `void`; `options?`: [`IUIOption`](../interfaces/types.IUIOption.html)[]; `radio`: `boolean`; \} |
| `options.name?` | `string` |
| `options.value?` | `string` \| `number` \| `boolean` |
| `options.label?` | `string` |
| `options.onChange?` | (`values`) => `void` |
| `options.options?` | [`IUIOption`](../interfaces/types.IUIOption.html)[] |
| `options.radio` | `boolean` |

#### Returns

`UIButtonGroup`

#### Overrides

[`UIGroup`](./ui_group.UIGroup.html).[`constructor`](./ui_group.UIGroup.html#constructor)

### STATUSES

`static` **STATUSES**: `object`

Defined in: [src/core/component/component.ts:40](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L40)

#### beforeInit

`readonly` **beforeInit**: `"beforeInit"` = `'beforeInit'`

#### ready

`readonly` **ready**: `"ready"` = `'ready'`

#### beforeDestruct

`readonly` **beforeDestruct**: `"beforeDestruct"` = `'beforeDestruct'`

#### destructed

`readonly` **destructed**: `"destructed"` = `'destructed'`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`STATUSES`](./ui_group.UIGroup.html#statuses)

***

### async

**async**: [`IAsync`](../interfaces/types.IAsync.html)

Defined in: [src/core/component/component.ts:44](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L44)

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`async`](./ui_group.UIGroup.html#async)

***

### uid

`readonly` **uid**: `string`

Defined in: [src/core/component/component.ts:59](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L59)

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`uid`](./ui_group.UIGroup.html#uid)

***

### ownerWindow

**ownerWindow**: [`Window`](https://developer.mozilla.org/docs/Web/API/Window) = `window`

Defined in: [src/core/component/component.ts:109](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L109)

The window in which jodit was created

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`ownerWindow`](./ui_group.UIGroup.html#ownerwindow)

***

### jodit

**jodit**: [`IViewBased`](../interfaces/types.IViewBased.html)

Defined in: [src/core/component/view-component.ts:22](https://github.com/xdan/jodit/blob/main/src/core/component/view-component.ts#L22)

Parent View element

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`jodit`](./ui_group.UIGroup.html#jodit)

***

### elements

**elements**: [`IUIButton`](../interfaces/types.IUIButton.html)[]

Defined in: [src/core/ui/button/group/group.ts:26](https://github.com/xdan/jodit/blob/main/src/core/ui/button/group/group.ts#L26)

#### Overrides

[`UIGroup`](./ui_group.UIGroup.html).[`elements`](./ui_group.UIGroup.html#elements)

***

### options

`readonly` **options**: `object`

Defined in: [src/core/ui/button/group/group.ts:52](https://github.com/xdan/jodit/blob/main/src/core/ui/button/group/group.ts#L52)

#### name?

`optional` **name?**: `string`

#### value?

`optional` **value?**: `string` \| `number` \| `boolean`

#### label?

`optional` **label?**: `string`

#### onChange?

`optional` **onChange?**: (`values`) => `void`

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `values` | [`IUIOption`](../interfaces/types.IUIOption.html)[] |

##### Returns

`void`

#### options?

`optional` **options?**: [`IUIOption`](../interfaces/types.IUIOption.html)[]

#### radio

**radio**: `boolean`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`options`](./ui_group.UIGroup.html#options)

***

### container

**container**: [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)

Defined in: [src/core/ui/element.ts:34](https://github.com/xdan/jodit/blob/main/src/core/ui/element.ts#L34)

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`container`](./ui_group.UIGroup.html#container)

***

### name

**name**: `string` = `''`

Defined in: [src/core/ui/element.ts:35](https://github.com/xdan/jodit/blob/main/src/core/ui/element.ts#L35)

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`name`](./ui_group.UIGroup.html#name)

***

### mods

`readonly` **mods**: [`IDictionary`](../modules/types.html#idictionary)\<`string` \| `boolean` \| `null`\> = `{}`

Defined in: [src/core/ui/element.ts:133](https://github.com/xdan/jodit/blob/main/src/core/ui/element.ts#L133)

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`mods`](./ui_group.UIGroup.html#mods)

***

### syncMod

**syncMod**: `boolean` = `false`

Defined in: [src/core/ui/group/group.ts:45](https://github.com/xdan/jodit/blob/main/src/core/ui/group/group.ts#L45)

Synchronize mods to all children

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`syncMod`](./ui_group.UIGroup.html#syncmod)

***

### buttonSize

**buttonSize**: `"small"` \| `"tiny"` \| `"xsmall"` \| `"middle"` \| `"large"` = `'middle'`

Defined in: [src/core/ui/group/group.ts:74](https://github.com/xdan/jodit/blob/main/src/core/ui/group/group.ts#L74)

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`buttonSize`](./ui_group.UIGroup.html#buttonsize)

#### Get Signature

**get** **componentName**(): `string`

Defined in: [src/core/component/component.ts:46](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L46)

##### Returns

`string`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`componentName`](./ui_group.UIGroup.html#componentname)

***

#### Get Signature

**get** **ownerDocument**(): [`Document`](https://developer.mozilla.org/docs/Web/API/Document)

Defined in: [src/core/component/component.ts:95](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L95)

The document in which jodit was created

##### Returns

[`Document`](https://developer.mozilla.org/docs/Web/API/Document)

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`ownerDocument`](./ui_group.UIGroup.html#ownerdocument)

***

#### Get Signature

**get** **od**(): [`Document`](https://developer.mozilla.org/docs/Web/API/Document)

Defined in: [src/core/component/component.ts:102](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L102)

Shortcut for `this.ownerDocument`

##### Returns

[`Document`](https://developer.mozilla.org/docs/Web/API/Document)

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`od`](./ui_group.UIGroup.html#od)

***

#### Get Signature

**get** **ow**(): [`Window`](https://developer.mozilla.org/docs/Web/API/Window)

Defined in: [src/core/component/component.ts:110](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L110)

##### Returns

[`Window`](https://developer.mozilla.org/docs/Web/API/Window)

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`ow`](./ui_group.UIGroup.html#ow)

***

#### Get Signature

**get** **isReady**(): `boolean`

Defined in: [src/core/component/component.ts:145](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L145)

Component is ready for work

##### Returns

`boolean`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`isReady`](./ui_group.UIGroup.html#isready)

***

#### Get Signature

**get** **isDestructed**(): `boolean`

Defined in: [src/core/component/component.ts:152](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L152)

Component was destructed

##### Returns

`boolean`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`isDestructed`](./ui_group.UIGroup.html#isdestructed)

***

#### Get Signature

**get** **isInDestruct**(): `boolean`

Defined in: [src/core/component/component.ts:160](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L160)

The component is currently undergoing destructuring or has already been destroyed.
Those. you should not the app froze new events on him now or do anything else with him.

##### Returns

`boolean`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`isInDestruct`](./ui_group.UIGroup.html#isindestruct)

***

#### Get Signature

**get** **componentStatus**(): [`ComponentStatus`](../modules/types.html#componentstatus)

Defined in: [src/core/component/component.ts:210](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L210)

Current component status

##### Returns

[`ComponentStatus`](../modules/types.html#componentstatus)

#### Set Signature

**set** **componentStatus**(`componentStatus`): `void`

Defined in: [src/core/component/component.ts:217](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L217)

Setter for current component status

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `componentStatus` | [`ComponentStatus`](../modules/types.html#componentstatus) |

##### Returns

`void`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`componentStatus`](./ui_group.UIGroup.html#componentstatus)

***

#### Get Signature

**get** **j**(): `T`

Defined in: [src/core/component/view-component.ts:27](https://github.com/xdan/jodit/blob/main/src/core/component/view-component.ts#L27)

Shortcut for `this.jodit`

##### Returns

`T`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`j`](./ui_group.UIGroup.html#j)

***

#### Get Signature

**get** **defaultTimeout**(): `number`

Defined in: [src/core/component/view-component.ts:31](https://github.com/xdan/jodit/blob/main/src/core/component/view-component.ts#L31)

##### Returns

`number`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`defaultTimeout`](./ui_group.UIGroup.html#defaulttimeout)

***

#### Get Signature

**get** **parentElement**(): [`Nullable`](../modules/types.html#nullable)\<[`IUIElement`](../interfaces/types.IUIElement.html)\>

Defined in: [src/core/ui/element.ts:45](https://github.com/xdan/jodit/blob/main/src/core/ui/element.ts#L45)

##### Returns

[`Nullable`](../modules/types.html#nullable)\<[`IUIElement`](../interfaces/types.IUIElement.html)\>

#### Set Signature

**set** **parentElement**(`parentElement`): `void`

Defined in: [src/core/ui/element.ts:49](https://github.com/xdan/jodit/blob/main/src/core/ui/element.ts#L49)

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `parentElement` | [`Nullable`](../modules/types.html#nullable)\<[`IUIElement`](../interfaces/types.IUIElement.html)\> |

##### Returns

`void`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`parentElement`](./ui_group.UIGroup.html#parentelement)

***

#### Get Signature

**get** **allChildren**(): [`IUIElement`](../interfaces/types.IUIElement.html)[]

Defined in: [src/core/ui/group/group.ts:52](https://github.com/xdan/jodit/blob/main/src/core/ui/group/group.ts#L52)

All group children

##### Returns

[`IUIElement`](../interfaces/types.IUIElement.html)[]

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`allChildren`](./ui_group.UIGroup.html#allchildren)

#### Call Signature

**getFullElName**(`elementName`): `string`

Defined in: [src/core/component/component.ts:65](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L65)

Calc BEM element class name

##### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `elementName` | `string` | element name in the bem classification |

##### Returns

`string`

##### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`getFullElName`](./ui_group.UIGroup.html#getfullelname)

#### Call Signature

**getFullElName**(`elementName`, `mod`): `string`

Defined in: [src/core/component/component.ts:66](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L66)

Calc BEM element class name

##### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `elementName` | `string` | element name in the bem classification |
| `mod` | `string` | - |

##### Returns

`string`

##### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`getFullElName`](./ui_group.UIGroup.html#getfullelname)

#### Call Signature

**getFullElName**(`elementName`, `mod`, `modValue`): `string`

Defined in: [src/core/component/component.ts:67](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L67)

Calc BEM element class name

##### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `elementName` | `string` | element name in the bem classification |
| `mod` | `string` | - |
| `modValue` | `string` \| `boolean` | - |

##### Returns

`string`

##### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`getFullElName`](./ui_group.UIGroup.html#getfullelname)

***

### bindDestruct()

**bindDestruct**(`component`): `this`

Defined in: [src/core/component/component.ts:170](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L170)

Bind destructor to some View

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `component` | [`IComponent`](../interfaces/types.IComponent.html) |

#### Returns

`this`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`bindDestruct`](./ui_group.UIGroup.html#binddestruct)

***

### setStatus()

**setStatus**(`componentStatus`): `void`

Defined in: [src/core/component/component.ts:226](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L226)

Set component status

#### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `componentStatus` | [`ComponentStatus`](../modules/types.html#componentstatus) | component status |

#### Returns

`void`

#### See

ComponentStatus

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`setStatus`](./ui_group.UIGroup.html#setstatus)

***

### hookStatus()

**hookStatus**(`status`, `callback`): `void`

Defined in: [src/core/component/component.ts:265](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L265)

Adds a handler for changing the component's status

#### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `status` | [`ComponentStatus`](../modules/types.html#componentstatus) | the status at which the callback is triggered |
| `callback` | (`component`) => `void` | a function that will be called when the status is `status` |

#### Returns

`void`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`hookStatus`](./ui_group.UIGroup.html#hookstatus)

***

### isInstanceOf()

`static` **isInstanceOf**\<`T`\>(`c`, `constructorFunc`): `c is T`

Defined in: [src/core/component/component.ts:283](https://github.com/xdan/jodit/blob/main/src/core/component/component.ts#L283)

#### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* [`Component`](./component.Component.html) |

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `c` | `unknown` |
| `constructorFunc` | [`Function`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Function) |

#### Returns

`c is T`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`isInstanceOf`](./ui_group.UIGroup.html#isinstanceof)

***

### i18n()

**i18n**(`text`, ...`params`): `string`

Defined in: [src/core/component/view-component.ts:35](https://github.com/xdan/jodit/blob/main/src/core/component/view-component.ts#L35)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `text` | `string` |
| ...`params` | (`string` \| `number`)[] |

#### Returns

`string`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`i18n`](./ui_group.UIGroup.html#i18n)

***

### getElm()

**getElm**\<`T`\>(`this`, `elementName`): [`Nullable`](../modules/types.html#nullable)\<[`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)\>

Defined in: [src/core/traits/elms.ts:18](https://github.com/xdan/jodit/blob/main/src/core/traits/elms.ts#L18)

Return element with BEM class name

#### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* [`IComponent`](../interfaces/types.IComponent.html)\<[`IViewBased`](../interfaces/types.IViewBased.html)\<[`IViewOptions`](../interfaces/types.IViewOptions.html)\>\> & [`IContainer`](../interfaces/types.IContainer.html) & [`IElms`](../interfaces/types.IElms.html) |

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `T` |
| `elementName` | `string` |

#### Returns

[`Nullable`](../modules/types.html#nullable)\<[`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)\>

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`getElm`](./ui_group.UIGroup.html#getelm)

***

### getElms()

**getElms**\<`T`\>(`this`, `elementName`): [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)[]

Defined in: [src/core/traits/elms.ts:30](https://github.com/xdan/jodit/blob/main/src/core/traits/elms.ts#L30)

Return elements with BEM class name

#### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* [`IComponent`](../interfaces/types.IComponent.html)\<[`IViewBased`](../interfaces/types.IViewBased.html)\<[`IViewOptions`](../interfaces/types.IViewOptions.html)\>\> & [`IContainer`](../interfaces/types.IContainer.html) & [`IElms`](../interfaces/types.IElms.html) |

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `T` |
| `elementName` | `string` |

#### Returns

[`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)[]

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`getElms`](./ui_group.UIGroup.html#getelms)

***

### setMod()

**setMod**\<`T`\>(`this`, `name`, `value`, `container?`): `T`

Defined in: [src/core/traits/mods.ts:30](https://github.com/xdan/jodit/blob/main/src/core/traits/mods.ts#L30)

Set/remove BEM class modification

#### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* [`IComponent`](../interfaces/types.IComponent.html)\<[`IViewBased`](../interfaces/types.IViewBased.html)\<[`IViewOptions`](../interfaces/types.IViewOptions.html)\>\> & [`IContainer`](../interfaces/types.IContainer.html) & [`IMods`](../interfaces/types.IMods.html) |

#### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `this` | `T` | - |
| `name` | `string` | - |
| `value` | [`ModType`](../modules/types.html#modtype) | if null, mod will be removed |
| `container?` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) | - |

#### Returns

`T`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`setMod`](./ui_group.UIGroup.html#setmod)

***

### getMod()

**getMod**(`this`, `name`): [`ModType`](../modules/types.html#modtype)

Defined in: [src/core/traits/mods.ts:64](https://github.com/xdan/jodit/blob/main/src/core/traits/mods.ts#L64)

Get BEM class modification value

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | [`IMods`](../interfaces/types.IMods.html) |
| `name` | `string` |

#### Returns

[`ModType`](../modules/types.html#modtype)

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`getMod`](./ui_group.UIGroup.html#getmod)

***

### className()

**className**(): `string`

Defined in: [src/core/ui/button/group/group.ts:29](https://github.com/xdan/jodit/blob/main/src/core/ui/button/group/group.ts#L29)

#### Returns

`string`

#### Overrides

[`UIGroup`](./ui_group.UIGroup.html).[`className`](./ui_group.UIGroup.html#classname)

***

### bubble()

**bubble**(`callback`): `this`

Defined in: [src/core/ui/element.ts:59](https://github.com/xdan/jodit/blob/main/src/core/ui/element.ts#L59)

Apply callback for all parents

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `callback` | (`parent`) => `void` |

#### Returns

`this`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`bubble`](./ui_group.UIGroup.html#bubble)

***

### updateParentElement()

**updateParentElement**(`target`): `this`

Defined in: [src/core/ui/element.ts:70](https://github.com/xdan/jodit/blob/main/src/core/ui/element.ts#L70)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `target` | [`IUIElement`](../interfaces/types.IUIElement.html) |

#### Returns

`this`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`updateParentElement`](./ui_group.UIGroup.html#updateparentelement)

***

### get()

**get**\<`T`\>(`chain`, `obj?`): [`Nullable`](../modules/types.html#nullable)\<`T`\>

Defined in: [src/core/ui/element.ts:76](https://github.com/xdan/jodit/blob/main/src/core/ui/element.ts#L76)

#### Type Parameters

| Type Parameter |
| ------ |
| `T` |

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `chain` | `string` |
| `obj?` | [`IDictionary`](../modules/types.html#idictionary) |

#### Returns

[`Nullable`](../modules/types.html#nullable)\<`T`\>

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`get`](./ui_group.UIGroup.html#get)

***

### closest()

Find match parent

#### Call Signature

**closest**\<`T`\>(`ctor`): [`Nullable`](../modules/types.html#nullable)\<`T`\>

Defined in: [src/core/ui/element.ts:80](https://github.com/xdan/jodit/blob/main/src/core/ui/element.ts#L80)

##### Type Parameters

| Type Parameter |
| ------ |
| `T` |

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `ctor` | [`ComponentCompatible`](../interfaces/decorators_component.ComponentCompatible.html)\<`T`\> |

##### Returns

[`Nullable`](../modules/types.html#nullable)\<`T`\>

##### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`closest`](./ui_group.UIGroup.html#closest)

#### Call Signature

**closest**\<`T`\>(`type`): [`Nullable`](../modules/types.html#nullable)\<`T` *extends* *typeof* [`UIElement`](./ui.UIElement.html) ? [`InstanceType`](https://www.typescriptlang.org/docs/handbook/utility-types.html#instancetypetype)\<`T`\> : `T`\>

Defined in: [src/core/ui/element.ts:82](https://github.com/xdan/jodit/blob/main/src/core/ui/element.ts#L82)

##### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* *typeof* [`UIElement`](./ui.UIElement.html) \| [`UIElement`](./ui.UIElement.html)\<[`IViewBased`](../interfaces/types.IViewBased.html)\<[`IViewOptions`](../interfaces/types.IViewOptions.html)\>\> |

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `type` | [`Function`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Function) \| [`UIElement`](./ui.UIElement.html)\<[`IViewBased`](../interfaces/types.IViewBased.html)\<[`IViewOptions`](../interfaces/types.IViewOptions.html)\>\> |

##### Returns

[`Nullable`](../modules/types.html#nullable)\<`T` *extends* *typeof* [`UIElement`](./ui.UIElement.html) ? [`InstanceType`](https://www.typescriptlang.org/docs/handbook/utility-types.html#instancetypetype)\<`T`\> : `T`\>

##### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`closest`](./ui_group.UIGroup.html#closest)

***

### closestElement()

`static` **closestElement**(`node`, `type`): [`Nullable`](../modules/types.html#nullable)\<[`IUIElement`](../interfaces/types.IUIElement.html)\>

Defined in: [src/core/ui/element.ts:120](https://github.com/xdan/jodit/blob/main/src/core/ui/element.ts#L120)

Find closest UIElement in DOM

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) |
| `type` | [`Function`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Function) |

#### Returns

[`Nullable`](../modules/types.html#nullable)\<[`IUIElement`](../interfaces/types.IUIElement.html)\>

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`closestElement`](./ui_group.UIGroup.html#closestelement)

***

### appendTo()

**appendTo**(`element`): `this`

Defined in: [src/core/ui/element.ts:145](https://github.com/xdan/jodit/blob/main/src/core/ui/element.ts#L145)

Append container to element

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `element` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |

#### Returns

`this`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`appendTo`](./ui_group.UIGroup.html#appendto)

***

### getRole()

**getRole**(): `string`

Defined in: [src/core/ui/group/group.ts:38](https://github.com/xdan/jodit/blob/main/src/core/ui/group/group.ts#L38)

#### Returns

`string`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`getRole`](./ui_group.UIGroup.html#getrole)

***

### update()

**update**(): `void`

Defined in: [src/core/ui/group/group.ts:80](https://github.com/xdan/jodit/blob/main/src/core/ui/group/group.ts#L80)

Update all children

#### Returns

`void`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`update`](./ui_group.UIGroup.html#update)

***

#### Call Signature

**append**(`elm`, `index?`): `this`

Defined in: [src/core/ui/group/group.ts:88](https://github.com/xdan/jodit/blob/main/src/core/ui/group/group.ts#L88)

Append new element into group

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `elm` | [`IUIElement`](../interfaces/types.IUIElement.html) |
| `index?` | `number` |

##### Returns

`this`

##### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`append`](./ui_group.UIGroup.html#append)

#### Call Signature

**append**(`elm`, `distElement?`): `this`

Defined in: [src/core/ui/group/group.ts:89](https://github.com/xdan/jodit/blob/main/src/core/ui/group/group.ts#L89)

Append new element into group

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `elm` | [`IUIElement`](../interfaces/types.IUIElement.html) |
| `distElement?` | `string` |

##### Returns

`this`

##### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`append`](./ui_group.UIGroup.html#append)

#### Call Signature

**append**(`elm`, `distElement?`): `this`

Defined in: [src/core/ui/group/group.ts:90](https://github.com/xdan/jodit/blob/main/src/core/ui/group/group.ts#L90)

Append new element into group

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `elm` | [`IUIElement`](../interfaces/types.IUIElement.html)[] |
| `distElement?` | `string` |

##### Returns

`this`

##### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`append`](./ui_group.UIGroup.html#append)

***

### afterSetMod()

**afterSetMod**(`name`, `value`): `void`

Defined in: [src/core/ui/group/group.ts:138](https://github.com/xdan/jodit/blob/main/src/core/ui/group/group.ts#L138)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `name` | `string` |
| `value` | [`ModType`](../modules/types.html#modtype) |

#### Returns

`void`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`afterSetMod`](./ui_group.UIGroup.html#aftersetmod)

***

### remove()

**remove**(`elm`): `this`

Defined in: [src/core/ui/group/group.ts:169](https://github.com/xdan/jodit/blob/main/src/core/ui/group/group.ts#L169)

Remove element from group

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `elm` | [`IUIElement`](../interfaces/types.IUIElement.html) |

#### Returns

`this`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`remove`](./ui_group.UIGroup.html#remove)

***

### clear()

**clear**(): `this`

Defined in: [src/core/ui/group/group.ts:184](https://github.com/xdan/jodit/blob/main/src/core/ui/group/group.ts#L184)

Clear group

#### Returns

`this`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`clear`](./ui_group.UIGroup.html#clear)

***

### setParentView()

**setParentView**(`view`): `this`

Defined in: [src/core/ui/group/group.ts:207](https://github.com/xdan/jodit/blob/main/src/core/ui/group/group.ts#L207)

Attach component to View

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `view` | [`IViewBased`](../interfaces/types.IViewBased.html) |

#### Returns

`this`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`setParentView`](./ui_group.UIGroup.html#setparentview)

***

### destruct()

**destruct**(): `any`

Defined in: [src/core/ui/group/group.ts:213](https://github.com/xdan/jodit/blob/main/src/core/ui/group/group.ts#L213)

#### Returns

`any`

#### Inherited from

[`UIGroup`](./ui_group.UIGroup.html).[`destruct`](./ui_group.UIGroup.html#destruct)
