GxTitle.AutoHeight

Syntax

AutoHeight: Boolean

Description

The AutoHeight property determines whether title is automatically fit to height.

Comments

Available values:

Use JSON or the setAutoHeight method to set the property value and the getAutoHeight 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's height is automatically aligned:

// Get title
var title = expressBox.getDataView().getTitleView();
// Check if title's height is automatically aligned
if (title.getAutoHeight()) {
    console.log("Title's is automatically aligned");
} else {
    console.log("title's height is not aligned");
}

As a result the console displays the result of check if title's height is aligned:

Title's height is not aligned.

See also:

GxTitle