TextWrapping: Boolean
The TextWrapping property determines whether it is possible to wrap title text.
Available values:
true. If title text is not fit into one string, it is wrapped to the next string (default).
false. Title text is not wrapped.
Use JSON or the setTextWrapping method to set the property value, and the getTextWrapping method to get the property value.
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: