Skip to content

useLovListMemo

Function: useLovListMemo()

taipy-gui JS module APIDocs


taipy-gui JS module API / useLovListMemo

useLovListMemo(lov, defaultLov, tree): LovItem[]

A React hook that returns a LoV list from the LoV default value and the LoV bound value.

Parameters

lov: undefined | LoV

The bound lov value.

defaultLov: string

The JSON-stringified default LoV value.

tree: boolean = false

This flag indicates if the LoV list is a tree or a flat list (default is false).

Returns

LovItem[]

A list of LoV items.