diff --git a/API.md b/API.md index 8d18170..964bcc5 100644 --- a/API.md +++ b/API.md @@ -41,6 +41,7 @@ manipulate variables and fire functions on the fly. * [.load](#GUI+load) : Object * [.useLocalStorage](#GUI+useLocalStorage) : Boolean * [.add(object, property, [min], [max], [step])](#GUI+add) ⇒ [Controller](#Controller) + * [.add(object, property, values)](#GUI+add2) ⇒ [Controller](#Controller) * [.addColor(object, property)](#GUI+addColor) ⇒ [Controller](#Controller) * [.remove(controller)](#GUI+remove) * [.destroy()](#GUI+destroy) @@ -171,6 +172,27 @@ gui.add(person, 'name'); var person = {age: 45}; gui.add(person, 'age', 0, 100); ``` + + +### gui.add(object, property, values) ⇒ [Controller](#Controller) +Adds a new [Controller](#Controller) to the GUI. The type of controller created +is a `