Options
All
  • Public
  • Public/Protected
  • All
Menu

An expression that can be evaluated to produce a value.

For example:

if (value1 < value2) {
   return "rgba(255, 55, 55, 0.5)";
else {
   return "rgba(55, 255, 55, 0.5)";
}

can be converted to an expression:

var _ = ExpressionFactory;
var expression = _.ifThenElse(_.lt(_.number(value1), _.number(value2)),
                              _.color("rgba(255, 55, 55, 0.5)"),
                              _.color("rgba(55, 255, 55, 0.5)"));

It is not possible to create an Expression directly. Use the ExpressionFactory instead.

since

2017.0

Type parameters

  • T

Hierarchy

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method