Version: 5.x
vm-controls
Responsible for positioning and laying out individual/groups of controls.
#
Visual#
Usage- HTML
- React
- Vue
- Svelte
- Stencil
- Angular
example.vue
example.html
#
PropertiesProperty | Description | Type | Default |
---|---|---|---|
activeDuration | The length in milliseconds that the controls are active for before fading out. Audio players are not effected by this prop. | number | 2750 |
align | Sets the align-items flex property that aligns the individual controls on the cross-axis. | "center" ∣ "end" ∣ "start" | 'center' |
direction | Sets the flex-direction property that manages the direction in which the controls are layed out. | "column" ∣ "row" | 'row' |
fullHeight | Whether the controls container should be 100% height. This has no effect if the view is of type audio . | boolean | false |
fullWidth | Whether the controls container should be 100% width. This has no effect if the view is of type audio . | boolean | false |
hidden | Whether the controls are visible or not. | boolean | false |
hideOnMouseLeave | Whether the controls should hide when the mouse leaves the player. Audio players are not effected by this prop. | boolean | false |
hideWhenPaused | Whether the controls should show/hide when paused. Audio players are not effected by this prop. | boolean | false |
justify | Sets the justify-content flex property that aligns the individual controls on the main-axis. | "center" ∣ "end" ∣ "flex-end" ∣ "space-around" ∣ "space-between" ∣ "space-evenly" ∣ "start" | 'start' |
pin | Pins the controls to the defined position inside the video player. This has no effect when the view is of type audio . | "bottomLeft" ∣ "bottomRight" ∣ "center" ∣ "topLeft" ∣ "topRight" | 'bottomLeft' |
waitForPlaybackStart | Whether the controls should wait for playback to start before being shown. Audio players are not effected by this prop. | boolean | false |
#
SlotsSlot | Description |
---|---|
Used to pass in controls. |
#
CSS Custom PropertiesName | Description |
---|---|
--vm-controls-bg | The background color of the controls. |
--vm-controls-border-radius | The border radius of the controls. |
--vm-controls-padding | The padding inside the controls. |
--vm-controls-spacing | The space between controls. |
--vm-controls-z-index | The position in the UI z-axis stack inside the player. |