Object “ui”

Extends Composite

Represents the top-level parent for all widgets. It provides access to the status bar, the navigation bar, the drawer and the content view.

You can import this object like this:

import {ui} from 'tabris';

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

Properties

contentView

Type: Composite

The content view is the container for the widgets that constitute the app’s main UI. It covers the entire app area. Widgets can be appended directly to the content view.
This property can only be set on widget creation. Once set, it cannot be changed anymore.

drawer

Type: Drawer

A drawer that can be swiped in from the left edge of the screen. The drawer is locked by default. To use it in an application, set the property locked to false. The drawer can contain any kind of widgets.
This property can only be set on widget creation. Once set, it cannot be changed anymore.

Type: NavigationBar

Represents the system navigation bar is the onscreen area where Back, Home and similar buttons are displayed. It is only supported on Android.
This property can only be set on widget creation. Once set, it cannot be changed anymore.

statusBar

Type: StatusBar

Represents the system status bar. This is the area where notifications, status icons and device time are displayed.
This property can only be set on widget creation. Once set, it cannot be changed anymore.