Phone API Reference - UI Extended - screen.setTitleText

screen.setTitleText

 

Description

Returns a textWidget that can be added to the window. To be used as the title bar at the top of the screen. The title is displayed in white text on a black background one text line high. This is useful mostly if you want to make your apps look and feel similar to the factory Digium apps.

Basic Example: 

 screen.setTitleText(parameters);

Parameters

Name

Required

Type

Default

Description

Name

Required

Type

Default

Description

title

Yes

string

 

Title text to display.

Examples

screen.setTitleText to display the word 'title'

var screen = require('screen'); //require our extended library window.clear(); //clear the screen    var titleW = screen.setTitleText({'title' : 'title'}); //call our method to make a title widget window.add(titleW); //add it to the screen

Widget from setTitleText added to window
This is from the example. A simple titleText was added to window. the "titleText" refers to just the black bar and text across the top.

 

Return to Documentation Home I Return to Sangoma Support