Skip to main content

ExpressionInputProps

@lowcode/ui-kit


Interface: ExpressionInputProps

Defined in: components/form/ExpressionInput.tsx:6

Extends

  • Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "onChange">

Properties

errorText?

optional errorText: string

Defined in: components/form/ExpressionInput.tsx:34

Текст ошибки под полем (красный). При наличии errorText helperText не отображается.


hasError?

optional hasError: boolean

Defined in: components/form/ExpressionInput.tsx:46

Внешний флаг ошибки (например, если валидация происходит выше). Управляет только aria-invalid, но не текстами.


helperText?

optional helperText: string

Defined in: components/form/ExpressionInput.tsx:28

Текст-подсказка под полем (серый).


label?

optional label: ReactNode

Defined in: components/form/ExpressionInput.tsx:11

Заголовок поля (подпись сверху).


onChange()

onChange: (value) => void

Defined in: components/form/ExpressionInput.tsx:23

Коллбэк при изменении значения.

ВАЖНО: наружу уходит уже строка, а не SyntheticEvent.

Parameters

value

string

Returns

void


onEvaluate()?

optional onEvaluate: (value) => void

Defined in: components/form/ExpressionInput.tsx:57

Коллбэк нажатия на Evaluate. Получает текущее значение выражения.

Parameters

value

string

Returns

void


showEvaluateButton?

optional showEvaluateButton: boolean

Defined in: components/form/ExpressionInput.tsx:51

Рендерить ли кнопку Evaluate.


successText?

optional successText: string

Defined in: components/form/ExpressionInput.tsx:40

Текст успешной валидации (зелёный). Показывается, если нет errorText.


value

value: string

Defined in: components/form/ExpressionInput.tsx:16

Текущее значение выражения (строка).