Type “Popup”

Extends NativeObject

Base class for all pop-up UI elements. Pop-ups are placed on top of all other UI, but are not widgets. Some pop-ups can be opened only once.

You can import this type like this:

import {Popup} from 'tabris';

Or reference it directly form anywhere as “tabris.Popup”.

Methods

close()

Returns: this

Hides the popup.

open()

Returns: this

Makes the popup visible.

static open(popup)

Parameters:

  • popup: Popup
    • the pop-up to open

Returns: Popup

Makes the given popup visible.

This is a static method. It is called directly on the class, not the instance.