Skip to main content

expression-builder

Home > @genesislcap/expression-builder

expression-builder package

Classes

ClassDescription
ExpressionBuilder

(BETA) Top level component to allow the user to build expressions. It produces a generic payload which doesn't have any system by itself to evaluate or execute the built expression.

The basics required to work with this component:

ExpressionBuilder.config property to configure and input data and models into the component.

_Event_ change - Types.Group emits the model configuration on change. If you create a child component of the expression builder where you want to use a different (e.g. domain specific) model then it will likely override then emit event and instead emit it's own model. To check the underlying Types.Group model check the ExpressionBuilder.model property.

Namespaces

NamespaceDescription
Config
Types

Variables

VariableDescription
formatDateString

(BETA) Gets the string representation from a Date which is the format a date input uses. yyyy-mm-dd. Uses UTC methods to ensure consistent output regardless of timezone.

Used to convert a javascript date object into the required string format expected by the expression builder.

formatDateTimeString

(BETA) Gets the string representation from a Date which is the format a datetime-local input uses. yyyy-mm-ddThh:mm:ss. Uses UTC methods to ensure consistent output regardless of timezone.

Used to convert a javascript date object into the required string format expected by the expression builder.