Yurba Docs
Yurba Documentation

Get started

Accounts

Apps

Users

Relationships

Dialogs (Messages)

Tracks (MuseBase)

Photos

Posts

Comments

Safety

Other

Yurba CDN (cdn.yurba.one)

For Desktop Developers

Using Tab

A Tab is a panel that can accept any HTML content inside it and can be used as an additional window within an application. A tab looks like this:



You can customize the tab in different ways, making your own custom tab style that will fit your extension. Let's start with the basics and see how to activate the tab:

app.openTab()

After that, you will see a tab. It is recommended to use this function in conjunction with some other function, like app.eventButton().

But, the tab will be completely bare. You can customize and put content there using this method:

app.setTab({ "header": { "background": "linear-gradient(0deg, #3c5bff, #3b80ff)", "color": "white" }, "divider": { "color": "var(--yurba-body-color)", "height": "1px", "opacity": ".5" }, "body": { "background": "var(--yurba-main-color)", "color": "var(--yurba-text-color)", "border": "1px solid var(--yurba-body-color)", "padding": "30px" }, "title": "My Example Tab", "description": "My description", "content": "<span class='fw-bold'>Hello world!</span>" })

This code will make the tab look like the image below. Now you know how to create a cool tab and use it in your extensions. The documentation below also describes methods if you forget something.