diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index c1458a02f899bd229dcfdea0ebb2ace220994112..22d36fd4a1345ce045396dc6cd256be72a75a115 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -6251,6 +6251,22 @@ typedef enum { */ NODE_GRID_CACHED_COUNT, + /** + * @brief Defines the focus wrap mode for the Grid component. + * This attribute can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].i32: focus wrap mode of the Grid component. + * The parameter type is {@link ArkUI_FocusWrapMode}. \n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: focus wrap mode of the Grid component. + * The parameter type is {@link ArkUI_FocusWrapMode}. \n + * + * @since 20 + */ + NODE_GRID_FOCUS_WRAP_MODE, + /** * @brief Defines the column width of the text picker. * This attribute can be set, reset, and obtained as required through APIs. diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index ff4522e3cd431acdddd4d4b02f55863476e06847..adf2dbcc6cadbdd4abd86931dc29c03d4fba22ea 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -647,6 +647,18 @@ typedef enum { ARKUI_EFFECT_EDGE_END = 2, } ArkUI_EffectEdge; +/** + * @brief Enumerates the focus wrap mode of components. + * + * @since 20 + */ +typedef enum { + /** Default mode, where focus does not wrap when arrow keys are used. */ + ARKUI_FOCUS_WRAPMODE_DEFAULT = 0, + /** Focus wraps automatically when arrow keys are used. */ + ARKUI_FOCUS_WRAPMODE_WRAP_WITH_ARROW = 1, +} ArkUI_FocusWrapMode; + /** * @brief Enumerates the scroll directions for the component. *