Update API.md

This commit is contained in:
Tomas 2020-04-22 11:03:00 +02:00 committed by GitHub
parent e22ea1b6d5
commit dcf0863d9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
API.md
View File

@ -192,7 +192,7 @@ is a `<select>` dropdown.
// Add a dropdown controller.
var person = {name: 'Sam'};
gui.add(person, 'name', ['Sam', 'Alex', 'Ray']);
gui.add(person, 'name', {'Sam': 'Sammy', 'Alex': 'Alexis', 'Ray': 'Riley']);
gui.add(person, 'name', {'Sam': 'Sammy', 'Alex': 'Alexis', 'Ray': 'Riley'});
```
<a name="GUI+addColor"></a>