From 41de0f78345c2c0e4ff763795cd91bc862b1b4a9 Mon Sep 17 00:00:00 2001 From: "tuzhilkin.ivan" Date: Fri, 26 Aug 2022 16:28:16 +0300 Subject: [PATCH] Add Adaptive Grid Signed-off-by: tuzhilkin.ivan Change-Id: I98434681cd1a671e1ac8af419fb7fb10a60c038e --- api/@internal/component/ets/grid.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/api/@internal/component/ets/grid.d.ts b/api/@internal/component/ets/grid.d.ts index e58a4765bc..2137978e98 100644 --- a/api/@internal/component/ets/grid.d.ts +++ b/api/@internal/component/ets/grid.d.ts @@ -186,6 +186,18 @@ declare class GridAttribute extends CommonMethod { onItemDrop( event: (event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void, ): GridAttribute; + + /** + * Lets you to specify the number of columns in the current grid layout for specific device width types. + * @since 9 + */ + columnsSizeTypes(value: { + xs?: string; + sm?: string; + md?: string; + lg?: string; + xl?: string; + }): GridAttribute; } declare const Grid: GridInterface; -- Gitee