web-music-score - v7.0.0
    Preparing search index...

    Class WmsControls

    Index
    DefaultPauseLabel: "Pause"
    DefaultPlayLabel: "Play"
    DefaultStopLabel: "Stop"
    • Detach attached music document.

      Returns void

    • Setup with play, pause and stop buttons.

      Parameters

      • playBtn: string | HTMLButtonElement

        Play button can be HTMLButtonElement or button element id.

      • pauseBtn: string | HTMLButtonElement

        Pause button can be HTMLButtonElement or button element id.

      • stopBtn: string | HTMLButtonElement

        Stop button can be HTMLButtonElement or button element id.

      • OptionalplayLabel: string

        Play button label (optional: "Play" if omitted).

      • OptionalpauseLabel: string

        Pause button label (optional: "Pause" if omitted).

      • OptionalstopLabel: string

        Stop button label (optional: "Stop" if omitted).

      Returns WmsControls

    • Setup with play and stop buttons.

      Parameters

      • playBtn: string | HTMLButtonElement

        Play button can be HTMLButtonElement or button element id.

      • stopBtn: string | HTMLButtonElement

        Stop button can be HTMLButtonElement or button element id.

      • OptionalplayLabel: string

        Play button label (optional: "Play" if omitted).

      • OptionalstopLabel: string

        Stop button label (optional: "Stop" if omitted).

      Returns WmsControls

    • Setup with single play button.

      Parameters

      • playBtn: string | HTMLButtonElement

        Play button can be HTMLButtonElement or button element id.

      • OptionalplayLabel: string

        Play button label (optional: "Play" if omitted).

      Returns WmsControls

    • Setup with single play/stop toggle button.

      Parameters

      • playStopBtn: string | HTMLButtonElement

        Play/Stop button can be HTMLButtonElement or button element id.

      • OptionalplayLabel: string

        Play button label (optional: "Play" if omitted).

      • OptionalstopLabel: string

        Stop button label (optional: "Stop" if omitted).

      Returns WmsControls

    • Get WmsControls from custom HTML element .

      Parameters

      • elem: HTMLElement | null | undefined

        HTML element or element id.

      Returns WmsControls | undefined

      • WmsControls instance or undefined.