ExpressionEditorButton

View as Markdown

A function/operator chip shown above the Expression Editor textarea.

TypeScript
export interface

Properties

PropertyTypeDescription
datastringText inserted into the editor when the chip is clicked
functionNamestringRegistered Expression Function name. When set, the chip is only shown if
that function exists in the editor's function map. Omit for plain-text
inserts (e.g. "INCREASE" / "DECREASE").
iconstringOptional icon name (when set, typically shown instead of text)
newRowAfterbooleanWhen true, starts a new toolbar row after this chip
textstringOptional label shown on the chip

Property Details

data

Text inserted into the editor when the chip is clicked

TypeScript
data: string;
Property Value

string

functionName

Registered Expression Function name. When set, the chip is only shown if that function exists in the editor's function map. Omit for plain-text inserts (e.g. "INCREASE" / "DECREASE").

TypeScript
functionName?: string;
Property Value

string

icon

Optional icon name (when set, typically shown instead of text)

TypeScript
icon?: string;
Property Value

string

newRowAfter

When true, starts a new toolbar row after this chip

TypeScript
newRowAfter?: boolean;
Property Value

boolean

text

Optional label shown on the chip

TypeScript
text?: string;
Property Value

string