Widget “Page”

Extends Composite

A container representing a single page of a NavigationView widget.

You can import this type like this:

import {Page} from 'tabris';

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

Methods

insertBefore(widget)

Parameters:

Returns: this

Inserts this widget directly before the given Page.

Properties

autoDispose

Type: boolean, default: true

Defines whether this page will be automatically disposed when popped from the NavigationView, e.g. using native back navigation.

image

Type: Image

An image to be displayed in the navigation bar

title

Type: string

The page title to be displayed in the navigation bar.

Events

appear

Fired when the page is about to become visible, i.e. it has become the active page.

autoDisposeChanged

Fired when the autoDispose property has changed.

Event Parameters

  • target: this The widget the event was fired on.

  • value: boolean The new value of autoDispose.

disappear

Fired when the page is no longer visible, i.e. another page has become the active page.

imageChanged

Fired when the image property has changed.

Event Parameters

  • target: this The widget the event was fired on.

  • value: Image The new value of image.

titleChanged

Fired when the title property has changed.

Event Parameters

  • target: this The widget the event was fired on.

  • value: string The new value of title.

See also