Get started
Accounts
Apps
Users
Relationships
Dialogs (Messages)
Tracks (MuseBase)
Photos
Posts
Comments
Safety
Other
Yurba CDN (cdn.yurba.one)
Yurba Desktop API
Yurba Component Language
createButton: String UniqueName, String icon?
createButton {
String name,
String icon,
Method setTooltip {
value: String
},
Method on {
event: String,
callback: Function
},
Method setIndicator {
value: Int
},
Method removeIndicator,
Method active,
Method unactive,
Method properties,
}
const btn = app.createButton("Weather", "img:weather.png") // Take an image from a local folder
btn.setTooltip("My tooltip") // Create a tooltip with text "My tooltip"
const btn = app.createButton("Weather", "img:weather.png") // Take an image from a local folder
btn.setTooltip("My tooltip") // Create a tooltip with text "My tooltip"
// Event handler
btn.on("click", () => {
$this.removeIndicator()
$this.unactive()
})