Documentation

Trace: Component badge

(flutterui)

Component badge

This is an old revision of the document!


Its super simple to show component badges like:

Just use styles:

Show 9 as label <file style=“java”> Style.addStyleNames(comp, “f_badge_9”); </code>

Set border size and color:

Style.addStyleNames(comp, "f_badge_border_2_#aa0000");

Set alignment:

Style.addStyleNames(comp, "f_badge_align_bottomRight");

Possible values are: topLeft, topRight, bottomLeft, bottomRight, center

Set an offset for x and y position: Style.addStyleNames(comp, “f_badge_offset_10_5”); or just x: Style.addStyleNames(comp, “f_badge_offset_20”);

This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information