Browse Source

Merge pull request #1296 from ckeditor/t/ckeditor5-ui/123

Docs: Fixed outdated examples in the drop-down section of the UI library guide (see ckeditor/ckeditor5-ui#123).
Aleksander Nowodzinski 7 years ago
parent
commit
0cf57ff0d9
1 changed files with 8 additions and 2 deletions
  1. 8 2
      docs/framework/guides/architecture/ui-library.md

+ 8 - 2
docs/framework/guides/architecture/ui-library.md

@@ -387,12 +387,18 @@ const items = new Collection();
 
 
 items.add( {
 items.add( {
 	type: 'button',
 	type: 'button',
-	model: new Model( { label: 'Foo' } )
+	model: new Model( {
+		withText: true,
+		label: 'Foo'
+	} )
 } );
 } );
 
 
 items.add( {
 items.add( {
 	type: 'button',
 	type: 'button',
-	model: new Model( { label: 'Bar' } )
+	model: new Model( {
+		withText: true,
+		label: 'Bar'
+	} )
 } );
 } );
 
 
 // Create a dropdown with a list inside the panel.
 // Create a dropdown with a list inside the panel.