Lynx

Home > @lynx-js/genui > useDataBinding

useDataBinding() function

Signature:

export declare function useDataBinding<T = unknown>(
  dynamicValue: unknown,
  surface: Surface | undefined,
  dataContextPath?: string,
  fallbackValue?: T,
): [T | undefined, (newValue: T) => void, string | undefined];

Parameters

Parameter

Type

Description

dynamicValue

unknown

surface

Surface | undefined

dataContextPath

string

(Optional)

fallbackValue

T

(Optional)

Returns:

[T | undefined, (newValue: T) => void, string | undefined]

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.