diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index ce5b57eb466694a3560506fa7a0111385ae2d37f..c28ec3bf9b86e501ffe9c293dad64286aaded6b7 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -1044,8 +1044,8 @@ typedef enum { * .value[0].u32 fill color, in 0xARGB format. \n * .value[1].u32: stroke color, in 0xARGB format. \n * .value[2].f32: stroke width, in vp. \n - * .value[3].i32: mask type. The parameter type is {@link ArkUI_MaskType}. - * The value is ARKUI_MASK_TYPE_ELLIPSE for the ellipse shape.\n + * .value[3].i32: mask type. The parameter type is {@link ArkUI_MaskType}. + * The value is ARKUI_MASK_TYPE_ELLIPSE for the ellipse shape.\n * .value[4].f32: width of the ellipse.\n * .value[5].f32: height of the ellipse.\n * 4. Path:\n @@ -3550,7 +3550,7 @@ typedef enum { * */ NODE_TEXT_AREA_TYPE, - /** + /** * @brief Defines the counter settings. This attribute can be set, reset, and obtained as required through APIs. * * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n @@ -3559,6 +3559,10 @@ typedef enum { * when the number of characters that have been entered is greater than the maximum number of characters multiplied * by the threshold percentage value. The value range is 1 to 100. If the value is a decimal, it is rounded down. \n * .value[2]?.i32: whether to highlight the border when the number of entered characters reaches the maximum. \n + * value[3].u32: Set the text color of the character counter.The corresponding color is displayed when the + * color is set and the default value is displayed when the color is not set \n + * .value[4].u32: Sets the text color of the character counter when it overflows.The corresponding color is + * displayed when the color is set and the default value is displayed when the color is not set \n * \n * Format of the return value {@link ArkUI_AttributeItem}:\n * .value[0].i32: whether to show a character counter. \n @@ -3567,7 +3571,8 @@ typedef enum { * by the threshold percentage value. The value range is 1 to 100. \n * .value[2].i32: whether to highlight the border when the number of entered characters reaches the maximum. * The default value is true. \n - * + * .value[3].u32: Set the text color of the character counter. \n + * .value[4].u32: Sets the text color of the character counter when it overflows. \n */ NODE_TEXT_AREA_SHOW_COUNTER, /** @@ -7598,7 +7603,32 @@ typedef enum { * @since 20 */ NODE_TEXT_INPUT_ON_WILL_CHANGE = 7014, - + /** + * @brief Defines the counter settings. 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: whether to show a character counter. The value true means to show a character counter. \n + * .value[1]?.f32: threshold percentage for displaying the character counter. The character counter is displayed + * when the number of characters that have been entered is greater than the maximum number of characters multiplied + * by the threshold percentage value. The value range is 1 to 100. If the value is a decimal, it is rounded down. \n + * .value[2]?.i32: whether to highlight the border when the number of entered characters reaches the maximum. \n + * value[3].u32: Set the text color of the character counter.The corresponding color is displayed when the + * color is set and the default value is displayed when the color is not set \n + *.value[4].u32: Sets the text color of the character counter when it overflows.The corresponding color is + * displayed when the color is set and the default value is displayed when the color is not set \n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: whether to show a character counter. \n + * .value[1].f32: threshold percentage for displaying the character counter. The character counter is displayed + * when the number of characters that have been entered is greater than the maximum number of characters multiplied + * by the threshold percentage value. The value range is 1 to 100. \n + * .value[2].i32: whether to highlight the border when the number of entered characters reaches the maximum. + * The default value is true. \n + * .value[3].u32: Set the text color of the character counter. \n + * .value[4].u32: Sets the text color of the character counter when it overflows. \n + * + */ + NODE_TEXT_INPUT_SHOW_COUNTER = 7015, /** * @brief Defines the event triggered when the input in the text box changes. *