Skip to content

Latest commit

 

History

History
57 lines (51 loc) · 2.2 KB

File metadata and controls

57 lines (51 loc) · 2.2 KB
title beatMouseUp
sidebar_custom_props
kind category since
event
Events - Player
0.9.7

import { Tabs, TabItem, CodeBadge, SinceBadge, DynHeading, Link, Signature } from '@site/src/reference-commons'

This event is fired whenever the user releases the mouse after a mouse press on a beat. This event is fired regardless of whether the mouse was released on a beat. The parameter is null if the mouse was released somewhere beside the beat.

<Signature style="block" js={[["keyword","readonly"],["whitespace"," "],["identifier","beatMouseUp"],["token",":"],["whitespace"," "],["identifier","IEventEmitterOfT","/docs/reference/types/ieventemitteroft"],["token","<"],["identifier","Beat","/docs/reference/types/model/beat"],["whitespace"," "],["token","|"],["whitespace"," "],["keyword","null"],["token",">"],["token",";"]]} csharp={[["identifier","IEventEmitterOfT","/docs/reference/types/ieventemitteroft"],["token","<"],["identifier","Beat","/docs/reference/types/model/beat"],["token","?"],["token",">"],["whitespace"," "],["identifier","BeatMouseUp"],["whitespace"," "],["token","{"],["whitespace"," "],["keyword","get"],["token",";"],["whitespace"," "],["token","}"]]} kotlin={[["keyword","val"],["whitespace"," "],["identifier","beatMouseUp"],["token",":"],["whitespace"," "],["identifier","IEventEmitterOfT","/docs/reference/types/ieventemitteroft"],["token","<"],["identifier","Beat","/docs/reference/types/model/beat"],["token","?"],["token",">"]]} />

Examples

<Tabs defaultValue="javascript" values={[ { label: "JavaScript", value: "javascript"}, { label: "C#", value: "csharp"}, { label: "Android", value: "android"} ]}

```js const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab')); api.beatMouseUp.on((beat) => { hideSelection(beat); }); ``` ```cs var api = new AlphaTabApi(...); api.BeatMouseUp.On(beat => { HideSelection(beat); }); ``` ```kotlin val api = AlphaTabApi(...) api.beatMouseUp.on { beat -> hideSelection(beat) } ```