# ListPropertiesStyleConfig

interface

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-list/src/listconfig.ts#L147)

<a id="properties">

## Properties

<a id="member-listStyleTypes">

### `listStyleTypes?: ListStyleTypesConfig`

Defines which list styles should be available in the UI. Accepts a configuration object with numbered and bulleted styles.

```typescript
{
  list: {
	properties: {
	  styles: {
		listStyleTypes: {
		  numbered: [ 'decimal', 'lower-roman', 'upper-roman' ],
		  bulleted: [ 'disc', 'circle' ]
		}
	  }
	}
  }
}
```

When the `listTypes` configuration is set, `listStyleTypes` will only take effect for the enabled list types. For example, with the following configuration:

```typescript
{
  list: {
	properties: {
	  styles: {
		listTypes: 'numbered',
		listStyleTypes: {
		  numbered: [ 'decimal', 'lower-roman' ],
		  bulleted: [ 'disc', 'circle' ]
		}
	  }
	}
  }
}
```

Only the numbered list styles will be available in the UI, as the `listTypes` property limits style selection to numbered lists only.

**Note**: This configuration works only with [list properties](module_list_listproperties-ListProperties.md).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-list/src/listconfig.ts#L253)

Defaults to `` `{ numbered: [ 'decimal', 'decimal-leading-zero', 'lower-roman', 'upper-roman', 'lower-latin', 'upper-latin' ], bulleted: [ 'disc', 'circle', 'square' ] }` ``

<a id="member-listTypes">

### `listTypes?: ArrayOrItem<ListPropertiesStyleListType>`

Enable style feature for the given list type only.

```typescript
{
	list: {
		properties: {
			styles: {
				listTypes: 'numbered'
			}

			// ...
		}
	},

	// ...
}
```

*

**Note**: This configuration works only with [list properties](module_list_listproperties-ListProperties.md).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-list/src/listconfig.ts#L174)

Defaults to `['bulleted','numbered']`

<a id="member-useAttribute">

### `useAttribute?: boolean`

When set `true`, the list style feature will use the `type` attribute of `<ul>` and `<ol>` elements instead of the `list-style-type` style.

```typescript
{
	list: {
		properties: {
			styles: {
				useAttribute: true
			},

			// ...
		}
	},

	// ...
}
```

**Note**: Due to limitations of HTML, the "Decimal with leading zero" style is impossible to set using the `type` attribute.

**Note**: This configuration works only with [list properties](module_list_listproperties-ListProperties.md).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-list/src/listconfig.ts#L203)

Defaults to `false`

---

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