/
Phone API Reference - UI Extended - screen.setTitleText
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 |
---|---|---|---|---|
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.
Related content
Phone API Reference - UI Extended - screen
Phone API Reference - UI Extended - screen
More like this
Phone API Reference - UI Extended - screen.addListHeaders
Phone API Reference - UI Extended - screen.addListHeaders
More like this
Phone API Reference - UI Classes (Widgets)
Phone API Reference - UI Classes (Widgets)
More like this
Phone API Reference - UI Core - digium.app.idleWindow
Phone API Reference - UI Core - digium.app.idleWindow
More like this
Phone API Reference - UI Classes (Widgets) - Text
Phone API Reference - UI Classes (Widgets) - Text
More like this
Phone API Reference - UI Core
Phone API Reference - UI Core
More like this