Get started
Accounts
Apps
Users
Relationships
Dialogs (Messages)
Tracks (MuseBase)
Photos
Posts
Comments
Safety
Other
Yurba CDN (cdn.yurba.one)
For Desktop Developers
Allows you to process events inside a tab
app.tabEvent(string EventID, string EventName, () => {
/// your function here
})
How to get EventID?
EventID is an attribute in the "content" context of the tab. In order to create an event id you must place any HTML with the attribute "eventid" in the "content" area:
{
"content": "<span eventid="myEvent">Click me!</span">
}
After that, you can write code for this event and set it for example event click::
app.tabEvent("myEvent", "click", () => {
console.log("Hello world!");
})
EVENTS
click | Executes code when an element is clicked