Kaynağa Gözat

Docs: Updated ListDropdownItemDefinition docs with the switchbutton.

Aleksander Nowodzinski 7 yıl önce
ebeveyn
işleme
92e820fb79
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      packages/ckeditor5-ui/src/dropdown/utils.js

+ 1 - 1
packages/ckeditor5-ui/src/dropdown/utils.js

@@ -268,7 +268,7 @@ function focusDropdownContentsOnArrows( dropdownView ) {
  *
  * @typedef {Object} module:ui/dropdown/utils~ListDropdownItemDefinition
  *
- * @property {String} type Either `'separator'` or `'button'`.
+ * @property {String} type Either `'separator'`, `'button'` or `'switchbutton'`.
  * @property {module:ui/model~Model} [model] Model of the item (when **not** `'separator'`).
  * Its properties fuel the newly created list item (or its children, depending on the `type`).
  */