UNPKG

1.02 kBTypeScriptView Raw
1/**
2 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4 */
5/**
6 * @module list/listproperties/listreversedcommand
7 */
8import { Command } from 'ckeditor5/src/core.js';
9/**
10 * The list reversed command. It changes the `listReversed` attribute of the selected list items,
11 * letting the user to choose the order of an ordered list.
12 * It is used by the {@link module:list/listproperties~ListProperties list properties feature}.
13 */
14export default class ListReversedCommand extends Command {
15 /**
16 * @inheritDoc
17 */
18 value: boolean | null;
19 /**
20 * @inheritDoc
21 */
22 refresh(): void;
23 /**
24 * Executes the command.
25 *
26 * @fires execute
27 * @param options.reversed Whether the list should be reversed.
28 */
29 execute(options?: {
30 reversed?: boolean;
31 }): void;
32 /**
33 * Checks the command's {@link #value}.
34 */
35 private _getValue;
36}