mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Add docs for 'hideable' option.
This commit is contained in:
parent
f3cdfde17f
commit
10d5a55040
7
API.md
7
API.md
@ -60,10 +60,11 @@ manipulate variables and fire functions on the fly.
|
|||||||
| [params] | <code>Object</code> | | |
|
| [params] | <code>Object</code> | | |
|
||||||
| [params.name] | <code>String</code> | | The name of this GUI. |
|
| [params.name] | <code>String</code> | | The name of this GUI. |
|
||||||
| [params.load] | <code>Object</code> | | JSON object representing the saved state of this GUI. |
|
| [params.load] | <code>Object</code> | | JSON object representing the saved state of this GUI. |
|
||||||
| [params.auto] | <code>Boolean</code> | <code>true</code> | |
|
|
||||||
| [params.parent] | <code>dat.gui.GUI</code> | | The GUI I'm nested in. |
|
| [params.parent] | <code>dat.gui.GUI</code> | | The GUI I'm nested in. |
|
||||||
| [params.closed] | <code>Boolean</code> | | If true, starts closed |
|
| [params.autoPlace] | <code>Boolean</code> | <code>true</code> | |
|
||||||
| [params.closeOnTop] | <code>Boolean</code> | | If true, close/open button shows on top of the GUI |
|
| [params.hideable] | <code>Boolean</code> | <code>true</code> | If true, GUI is closed by the <kbd>h</kbd> keypress. |
|
||||||
|
| [params.closed] | <code>Boolean</code> | <code>false</code> | If true, starts closed |
|
||||||
|
| [params.closeOnTop] | <code>Boolean</code> | <code>false</code> | If true, close/open button shows on top of the GUI |
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
```js
|
```js
|
||||||
|
@ -80,10 +80,11 @@ const hideableGuis = [];
|
|||||||
* @param {String} [params.name] The name of this GUI.
|
* @param {String} [params.name] The name of this GUI.
|
||||||
* @param {Object} [params.load] JSON object representing the saved state of
|
* @param {Object} [params.load] JSON object representing the saved state of
|
||||||
* this GUI.
|
* this GUI.
|
||||||
* @param {Boolean} [params.auto=true]
|
|
||||||
* @param {dat.gui.GUI} [params.parent] The GUI I'm nested in.
|
* @param {dat.gui.GUI} [params.parent] The GUI I'm nested in.
|
||||||
* @param {Boolean} [params.closed] If true, starts closed
|
* @param {Boolean} [params.autoPlace=true]
|
||||||
* @param {Boolean} [params.closeOnTop] If true, close/open button shows on top of the GUI
|
* @param {Boolean} [params.hideable=true] If true, GUI is shown/hidden by <kbd>h</kbd> keypress.
|
||||||
|
* @param {Boolean} [params.closed=false] If true, starts closed
|
||||||
|
* @param {Boolean} [params.closeOnTop=false] If true, close/open button shows on top of the GUI
|
||||||
*/
|
*/
|
||||||
const GUI = function(pars) {
|
const GUI = function(pars) {
|
||||||
const _this = this;
|
const _this = this;
|
||||||
|
Loading…
Reference in New Issue
Block a user