This ideas portal has been deprecated. To submit new feature requests, please follow this guideline

Add support for "badges" on Buttons

A common mobile UI concept is the ability to add/display a "badge" on a button to indicate the need for user attention. It would be great if "Buttons" in NativeScript supported the display and styling of badges.

At a minimum, a "badge" should allow configuration of:

  • visibility
  • text (optional...usually a number)
  • background color
  • (maybe) border color?
  • font size (scale badge size based on this property)

By default, a badge should render on the upper-right corner of a button when displayed.

Ideally, badges would also be displayable on TabView buttons.

  • Guest
  • Jul 13 2016
Link to GitHub issue