GxTitle.setFontSize

Syntax

setFontSize(value: Number);

Parameters

value. Text size to be set.

Description

The setFontSize method sets title text font size.

Example

To execute the example, the HTML page must contain the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). To show the title, click the Title button on the Home tab. Set new size for title text:

// Get title
var title = expressBox.getDataView().getTitleView();
// Set new size for title text
title.setFontSize(10);

As a result new size is set for title text:

See also:

GxTitle