Reference to the Object containing the badge
Member of Badge (PRIM_MD.Badge)
Data Type - PRIM_MD.Control - Base class for for all MD controls
The Badge parent property sets the Material Design Control that the badge will be attached to.
This example shows the badge attached to an Action Button. The badge increments everytime the button is press.
Begin_Com Role(*EXTENDS #PRIM_WEB) Theme(#SYS_THEME) Define_Com Class(#Prim_md.Badge) Name(#Badge) Parent(#Button) Displayposition(1) Tabposition(1) Height(16) Left(50) Top(-10) Width(16) Define_Com Class(#PRIM_MD.ActionButton) Name(#Button) Displayposition(1) Icon('add') Left(64) Parent(#COM_OWNER) Tabposition(1) Themedrawstyle('MediumTitle') Top(48) Define_Com Class(#prim_nmbr) Name(#Clicks) Evtroutine Handling(#Button.Click) #Clicks += 1 #Badge := #Clicks.AsString Endroutine End_Com
Febuary 18 V14SP2