# Advanced List

> Editor42 Advanced List plugin: split toolbar buttons to pick a list style such as lower-alpha, upper-roman, circle or square. It needs the Lists plugin.

Source: https://editor42.com/plugins/advlist  
Every page of editor42.com has a Markdown copy at its URL + `.md` (`index.md` after a URL that ends in `/`); all of them are in one file: https://editor42.com/llms-full.txt

Plugin alias: `advlist`

```js
editor42.init({
  plugins: 'advlist lists'
});
```

Extends the built-in Lists plugin with advanced list style type controls. Adds split buttons to the toolbar that let users pick specific ordered and unordered list styles such as lower-alpha, upper-roman, circle, square, and more. Requires the `lists` plugin to be loaded.

## Options

| Option | Type | Default | Description |
|---|---|---|---|
| `advlist_number_styles` | `string[]` | `['default', 'lower-alpha', 'lower-greek', 'lower-roman', 'upper-alpha', 'upper-roman']` | Available ordered list style types in the dropdown. |
| `advlist_bullet_styles` | `string[]` | `['default', 'circle', 'square']` | Available unordered list style types in the dropdown. |

## Commands

| Command | Description |
|---|---|
| `ApplyUnorderedListStyle` | Applies a specific `list-style-type` to an unordered list. Value: `{ 'list-style-type': string }` |
| `ApplyOrderedListStyle` | Applies a specific `list-style-type` to an ordered list. Value: `{ 'list-style-type': string }` |

## Toolbar buttons

| Name | Type | Description |
|---|---|---|
| `numlist` | Split button | Numbered list with style dropdown (toggle button if only one style is configured) |
| `bullist` | Split button | Bullet list with style dropdown (toggle button if only one style is configured) |
