Sfoglia il codice sorgente

Docs: Improved imprecise documentation of the addListToDropdown utility function.

Aleksander Nowodzinski 7 anni fa
parent
commit
8a2c1cc56d
1 ha cambiato i file con 12 aggiunte e 3 eliminazioni
  1. 12 3
      packages/ckeditor5-ui/src/dropdown/utils.js

+ 12 - 3
packages/ckeditor5-ui/src/dropdown/utils.js

@@ -150,13 +150,22 @@ export function addToolbarToDropdown( dropdownView, buttons ) {
  *
  *
  *		items.add( {
  *		items.add( {
  *			type: 'button',
  *			type: 'button',
- *			model: new Model( { label: 'First item', labelStyle: 'color: red' } )
+ *			model: new Model( {
+ *				withText: true,
+ *				label: 'First item',
+ *				labelStyle: 'color: red'
+ *			} )
  *		} );
  *		} );
  *
  *
  *		items.add( {
  *		items.add( {
  *			 type: 'button',
  *			 type: 'button',
- *			 model: new Model( { label: 'Second item', labelStyle: 'color: green', class: 'foo' } )
- * 		} );
+ *			 model: new Model( {
+ *				withText: true,
+ *				label: 'Second item',
+ *				labelStyle: 'color: green',
+ *				class: 'foo'
+ *			} )
+ *		} );
  *
  *
  *		const dropdown = createDropdown( locale );
  *		const dropdown = createDropdown( locale );
  *
  *