Yurba Docs

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

METHOD define

Structure

define: String name, Any Content Description

Allows you to create an internal variable to use it in all parts of the application via app.global

Example usage

let content = "Hello world!" app.define("greetings", content) // later in the code Tab.onEvent("example", "click", () => { console.log(app.global.greetings) })