docs: update

This commit is contained in:
jean-emmanuel 2023-05-13 14:39:05 +02:00
parent 06b1a2243a
commit 617cc915bf

View file

@ -171,8 +171,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
| <h6 id="menu_toggle">toggle<a class="headerlink" href="#menu_toggle" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to make the menu stay opened after mouse/touch release |
| <h6 id="menu_doubleTap">doubleTap<a class="headerlink" href="#menu_doubleTap" title="Permanent link">#</a></h6> | `boolean` | <code>false</code> | Set to `true` to make the menu require a double tap to be opened instead of a single tap |
| <h6 id="menu_mode">mode<a class="headerlink" href="#menu_mode" title="Permanent link">#</a></h6> | `string` | <code>"default"</code> | Interaction modes:<br/>- `default`: opens on touch, closes and changes value on release<br/>- `toggle`: opens on click, closes and changes value on next click<br/>- `swipe`: opens on touch, changes value when the pointer moves above items, closes on release<br/>- `doubleTap`: same as `default` but opens on double tap<br/>- `doubleTap-toggle`: same as `toggle` but opens on double tap<br/><br/>Choices: `default`, `toggle`, `swipe`, `doubleTap`, `doubleTap-toggle` |
| <h6 id="menu_values">values<sup><i class="fas fa-bolt" title="dynamic"></i></sup><a class="headerlink" href="#menu_values" title="Permanent link">#</a></h6> | `array`&vert;<br/>`object` | <code>[<br/>&nbsp;1,<br/>&nbsp;2,<br/>&nbsp;3<br/>]</code> | `Array` of possible values to switch between : `[1,2,3]`<br/><br/>`Object` of label:value pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept<br/><br/>`{"labels": [], "values": []}` `object` where `labels` and `values` arrays must be of the same length. This syntax allows using the same label for different values. |
| <h6 id="menu_weights">weights<a class="headerlink" href="#menu_weights" title="Permanent link">#</a></h6> | `array` | <code>""</code> | `Array` of `number` defining the weights of each value in `values`<br/><br/>Ignored when `mode` is `grid` |