Skip to content
Phil Beauvoir edited this page Feb 23, 2024 · 2 revisions

Note

Attributes and methods described in this section are shared by more than one type of object

Contents

.labelExpression
.labelValue


.labelExpression

Applies to visual object, connection, and folder.

Get/set the label expression of a visual object, connection, or folder.

// Getters
var expression = object.getLabelExpression();
var expression = object.labelExpression;
var expression = object.attr("label-expression");

// Setters
object.setLabelExpression("${name}");
object.labelExpression = "${name}";
object.attr("label-expression", "${name}");

.labelValue

Applies to visual object, connection, and folder.

Returns the calculated value of a visual object, connection, or folder's label expression.

var value = object.labelValue;