web-music-score - v6.4.0-pre.9
    Preparing search index...

    Class WmsControls

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    DefaultPauseLabel: "Pause"
    DefaultPlayLabel: "Play"
    DefaultStopLabel: "Stop"

    Methods

    • Detach attached music document.

      Returns void

    • Set pause button.

      Parameters

      • pauseBtn: string | HTMLButtonElement

        HTML button element or element id.

      • OptionalpauseLabel: string

        Custom button label (e.g. "Pause").

      Returns WmsControls

      • This playback buttons class instance.

      setPauseButton() is deprecated. Will be removed in future release. Use setSinglePlay(), setSinglePlayStop(), setPlayStop() or setPlayPauseStop() instead.

    • Set play button.

      Parameters

      • playBtn: string | HTMLButtonElement

        HTML button element or element id.

      • OptionalplayLabel: string

        Custom button label (e.g. "Play").

      Returns WmsControls

      • This playback buttons class instance.

      setPlayButton() is deprecated. Will be removed in future release. Use setSinglePlay(), setSinglePlayStop(), setPlayStop() or setPlayPauseStop() instead.

    • 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

    • Set play/stop button.

      Parameters

      • playStopBtn: string | HTMLButtonElement

        HTML button element or element id.

      • OptionalplayLabel: string

        Custom button label for play action (e.g. "Play").

      • OptionalstopLabel: string

        Custom button label for stop action (e.g. "Stop").

      Returns WmsControls

      • This playback buttons class instance.

      setPlayStopButton() is deprecated. Will be removed in future release. Use setSinglePlay(), setSinglePlayStop(), setPlayStop() or setPlayPauseStop() instead.

    • 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

    • Set stop button.

      Parameters

      • stopBtn: string | HTMLButtonElement

        HTML button element or element id.

      • OptionalstopLabel: string

        Custom button label (e.g. "Stop").

      Returns WmsControls

      • This playback buttons class instance.

      setStopButton() is deprecated. Will be removed in future release. Use setSinglePlay(), setSinglePlayStop(), setPlayStop() or setPlayPauseStop() instead.

    • Get WmsControls from custom HTML element .

      Parameters

      • elem: HTMLElement | null | undefined

        HTML element or element id.

      Returns WmsControls | undefined

      • WmsControls instance or undefined.