Version: 5.x
vm-settings-control
A control for toggling the visiblity of the settings menu. This control is not displayed if no
settings (vime-settings
) has been provided for the current player.
#
Visual#
Usage- HTML
- React
- Vue
- Svelte
- Stencil
- Angular
example.vue
example.svelte
example.html
#
PropertiesProperty | Description | Type | Default |
---|---|---|---|
expanded | Whether the settings menu this control manages is open. | boolean | false |
hideTooltip | Whether the tooltip should not be displayed. | boolean | false |
icon | The name of the settings icon to resolve from the icon library. | string | 'settings' |
icons | The name of an icon library to use. Defaults to the library defined by the icons player property. | string ∣ undefined | undefined |
menu | The DOM id of the settings menu this control is responsible for opening/closing. | string ∣ undefined | undefined |
tooltipDirection | The direction in which the tooltip should grow. | "left" ∣ "right" ∣ undefined | undefined |
tooltipPosition | Whether the tooltip is positioned above/below the control. | "bottom" ∣ "top" | 'top' |
#
MethodsMethod | Description | Signature |
---|---|---|
blurControl | Removes focus from the control. | blurControl() => Promise<void> |
focusControl | Focuses the control. | focusControl() => Promise<void> |