GxTitle.TextWrapping

Syntax

TextWrapping: Boolean

Description

The TextWrapping property determines whether it is possible to wrap title text.

Comments

Available values:

Use JSON or the setTextWrapping method to set the property value, and the getTextWrapping method to get the property value.

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. Check if title text is wrapped:

// Get title
var title = expressBox.getDataView().getTitleView();
// Check if title is visible
if (title.getTextWrapping()) {
    console.log("Title text is wrapped");
} else {
    console.log("Title text is not wrapped");
}

As a result the console displays the result of check if title text is wrapped:

Title text is wrapped

See also:

GxTitle