Version: 5.x
vm-mute-control
A control for toggling whether there is audio output or not. In other words the muted state of the player.
#
Visual#
Usage- HTML
- React
- Vue
- Svelte
- Stencil
- Angular
example.vue
example.svelte
example.html
#
PropertiesProperty | Description | Type | Default |
---|---|---|---|
hideTooltip | Whether the tooltip should not be displayed. | boolean | false |
highVolumeIcon | The name of the high volume icon to resolve from the icon library. | string | 'volume-high' |
icons | The name of an icon library to use. Defaults to the library defined by the icons player property. | string ∣ undefined | undefined |
keys | A slash (/ ) separated string of JS keyboard keys (KeyboardEvent.key ), that when caught in a keydown event, will trigger a click event on the control. | string ∣ undefined | 'm' |
lowVolumeIcon | The name of the low volume icon to resolve from the icon library. | string | 'volume-low' |
mutedIcon | The name of the muted volume icon to resolve from the icon library. | string | 'volume-mute' |
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' |
#
EventsEvent | Description | Type |
---|---|---|
vmBlur | Emitted when the control loses focus. | CustomEvent<void> |
vmFocus | Emitted when the control receives focus. | CustomEvent<void> |