Explorar el Código

Docs: Fixed imprecise UI framework documentation regarding lists in dropdowns.

Aleksander Nowodzinski hace 7 años
padre
commit
1924170053
Se han modificado 1 ficheros con 8 adiciones y 2 borrados
  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( {
 	type: 'button',
-	model: new Model( { label: 'Foo' } )
+	model: new Model( {
+		withText: 'true',
+		label: 'Foo'
+	} )
 } );
 
 items.add( {
 	type: 'button',
-	model: new Model( { label: 'Bar' } )
+	model: new Model( {
+		withText: 'true',
+		label: 'Bar'
+	} )
 } );
 
 // Create a dropdown with a list inside the panel.