# ActionNamed

## Content

[**DsPdfJS API v9.1.3**](../README)

***

[DsPdfJS API](../globals) / ActionNamed

# Class: ActionNamed

Represents an action that performs some viewer application action such as go to next or previous page, etc.

## Extends

- [`ActionBase`](ActionBase)

## Constructors

### Constructor

> **new ActionNamed**(`om`, `name?`): `ActionNamed`

Creates a new ActionNamed.

#### Parameters

##### om

[`ObjectManager`](ObjectManager)

[ObjectManager](ObjectManager) that controls the lifetime of the ActionNamed.

##### name?

`string`

The action name.

#### Returns

`ActionNamed`

#### Overrides

`ActionBase.constructor`

### Constructor

> **new ActionNamed**(`name?`): `ActionNamed`

Creates a new ActionNamed.

#### Parameters

##### name?

`string`

The action name.

#### Returns

`ActionNamed`

#### Overrides

`ActionBase.constructor`

## Accessors

### id

#### Get Signature

> **get** **id**(): `number`

Gets the reference to the object.

##### Returns

`number`

#### Inherited from

[`ActionBase`](ActionBase).[`id`](ActionBase#id)

***

### name

#### Get Signature

> **get** **name**(): `string` \| `null`

Gets or sets the name of action.
The most usefull names:
NextPage, PrevPage, FirstPage, LastPage

##### Returns

`string` \| `null`

#### Set Signature

> **set** **name**(`value`): `void`

Gets or sets the name of action.
The most usefull names:
NextPage, PrevPage, FirstPage, LastPage

##### Parameters

###### value

`string` | `null`

##### Returns

`void`

***

### om

#### Get Signature

> **get** **om**(): [`ObjectManager`](ObjectManager)

Gets the owner [ObjectManager](ObjectManager) instance.

##### Returns

[`ObjectManager`](ObjectManager)

#### Inherited from

[`ActionBase`](ActionBase).[`om`](ActionBase#om)

## Methods

### free()

> **free**(): `void`

Detaches the object from the [ObjectManager](ObjectManager) and deallocates its memory, if possible.

#### Returns

`void`

#### Inherited from

[`ActionBase`](ActionBase).[`free`](ActionBase#free)

***

### rebind()

> **rebind**(`omTo`): `void`

Rebinds the object from the current [ObjectManager](ObjectManager) to the specified one.

#### Parameters

##### omTo

[`ObjectManager`](ObjectManager)

The new [ObjectManager](ObjectManager) for the object.

#### Returns

`void`

#### Inherited from

[`ActionBase`](ActionBase).[`rebind`](ActionBase#rebind)
