From 4daa50ce35368eebcc18a3421433860fe4a3335c Mon Sep 17 00:00:00 2001 From: Jack Nam Date: Fri, 26 Jan 2024 10:37:55 +0900 Subject: [PATCH] Add onLayout --- src/components/LHNOptionsList/types.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/LHNOptionsList/types.ts b/src/components/LHNOptionsList/types.ts index ab7d27fdbd6a..1f2c98301f9a 100644 --- a/src/components/LHNOptionsList/types.ts +++ b/src/components/LHNOptionsList/types.ts @@ -106,6 +106,9 @@ type OptionRowLHNDataProps = { /** A function that is called when an option is selected. Selected option is passed as a param */ onSelectRow?: (optionItem: OptionData, popoverAnchor: RefObject) => void; + + /** Callback to execute when the OptionList lays out */ + onLayout?: (event: LayoutChangeEvent) => void; }; type OptionRowLHNProps = {