26 lines
1.2 KiB
TypeScript
26 lines
1.2 KiB
TypeScript
import { MediaChromeButton } from './media-chrome-button.js';
|
||
/**
|
||
* @slot off - An element shown when the media is muted or the media’s volume is 0.
|
||
* @slot low - An element shown when the media’s volume is “low” (less than 50% / 0.5).
|
||
* @slot medium - An element shown when the media’s volume is “medium” (between 50% / 0.5 and 75% / 0.75).
|
||
* @slot high - An element shown when the media’s volume is “high” (75% / 0.75 or greater).
|
||
* @slot icon - An element for representing all states in a single icon
|
||
*
|
||
* @attr {string} mediavolumelevel - (read-only) Set to the media volume level.
|
||
*
|
||
* @cssproperty [--media-mute-button-display = inline-flex] - `display` property of button.
|
||
*/
|
||
declare class MediaMuteButton extends MediaChromeButton {
|
||
static get observedAttributes(): string[];
|
||
constructor(options?: object);
|
||
connectedCallback(): void;
|
||
attributeChangedCallback(attrName: string, oldValue: string | null, newValue: string | null): void;
|
||
/**
|
||
* @type {string | undefined}
|
||
*/
|
||
get mediaVolumeLevel(): string | undefined;
|
||
set mediaVolumeLevel(value: string | undefined);
|
||
handleClick(): void;
|
||
}
|
||
export default MediaMuteButton;
|