---
title: "DecreaseListItemIndentCmd | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/DecreaseListItemIndentCmd/"
---

# DecreaseListItemIndentCmd

> The command to decrease the indent of list items by paragraph indexes.

## Classes

### DecreaseListItemIndentCmd

#### Remarks

if paragraphs indexes are not specified, then the current selection (or cursor position) is used.

#### Extends

- [`ListCmd`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ListCmd.md#abstract-listcmd)

#### Implements

- [`ICommand`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ICommand.md#icommand)

#### Constructors

##### Constructor

```ts
new DecreaseListItemIndentCmd(textManager, initData): DecreaseListItemIndentCmd;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `textManager` | [`ITextManager`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ITextManager.md#itextmanager) |
| `initData` | [`DecreaseListItemIndentData`](#decreaselistitemindentdata) |

###### Returns

[`DecreaseListItemIndentCmd`](#decreaselistitemindentcmd)

###### Overrides

[`ListCmd`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ListCmd.md#abstract-listcmd).[`constructor`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ListCmd.md#constructor)

#### Methods

##### execute()

```ts
execute(): boolean;
```

Executes the command.

###### Returns

`boolean`

true if changes were made, false otherwise.

###### Implementation of

[`ICommand`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ICommand.md#icommand).[`execute`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ICommand.md#execute)

***

### DecreaseListItemIndentData

Data required to initialize the command.

#### Constructors

##### Constructor

```ts
new DecreaseListItemIndentData(): DecreaseListItemIndentData;
```

###### Returns

[`DecreaseListItemIndentData`](#decreaselistitemindentdata)

#### Properties

##### paragraphIndexes?

```ts
optional paragraphIndexes?: number[];
```

Indexes of paragraphs to decrease indentation of list items.
