TitleBox.EditMode

Syntax

EditMode: boolean

Description

The EditMode property sets value of the Edit Mode checkbox for the express report title.

Comments

If the property is set to True, the title opens in the edit mode, if the property is set to False, the title opens in the view mode. By default this property is set to True.

Set the property value from JSON, and get the value using the getEditMode method.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Determine whether the express report mode is opened in the view mode or in the edit mode:

// Get view of express report title
var titleView = expressBox.getDataView().getTitleView();
// Indicate that on selecting node of the document that contains the title,
// there is no need to exit title edit mode
var node = expressBox.getDomNode();
titleView.bindCancelNode(node, True);
console.log("View mode: " + titleView.getViewMode());
console.log("Edit mode: " + titleView.getEditMode());

After executing the example the user gets information that the title is opened neither in the edit mode nor in the view mode:

View mode: false
Edit mode: false

See also:

TitleBox