Official Content

This property sets a Badge text into controls in an application for Smart Devices. Badges texts usually include additional information into the action icons or button, i.e., in a shopping cart icon, displays how many products have been purchased so far.

Syntax

control.BadgeText = Expression

Where:
Control
    Is the name of  a control inserted in the Application Bar

Expression
    Is the text that will be displayed.

Description

The assigned values will be displayed in the top-right corner of the control. For iOS applications, the property can be set for Buttons and Action Groups controls, in Android is only available for Buttons.

In order to reset the Badge value in the control, an empty text value must be assigned.

Run-time/Design-time

This property applies only at run-time.

Samples

Button.BadgeText = !"1"
ActionGroup.BadgeText = "New"
Button.BadgeText = !"" // Reset badge

Scope

Objects: Panel for Smart Devices, Work With for Smart Devices
Platform: Mobile (iOS, Android)
Controls: Button, Action Group (only in iOS)



Last update: November 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant