@tspro/web-music-score
    Preparing search index...

    Class MPlaybackButtons

    Playback buttons helper class.

    Index

    Constructors

    Methods

    • Detach attached music document.

      Returns void

    • Set pause button.

      Parameters

      • btn: string | HTMLButtonElement

        HTML button element or element id.

      • OptionalbtnLabel: string

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

      Returns MPlaybackButtons

      • This playback buttons class instance.
    • Set play button.

      Parameters

      • btn: string | HTMLButtonElement

        HTML button element or element id.

      • OptionalbtnLabel: string

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

      Returns MPlaybackButtons

      • This playback buttons class instance.
    • Set play/stop button.

      Parameters

      • btn: 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 MPlaybackButtons

      • This playback buttons class instance.
    • Set stop button.

      Parameters

      • btn: string | HTMLButtonElement

        HTML button element or element id.

      • OptionalbtnLabel: string

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

      Returns MPlaybackButtons

      • This playback buttons class instance.