Hi Victor,
Achieving this through a built-in functionality will be possible once the Badge component is available.
For the time being, a possible approach is to add a custom element, style it as a red circle and position it over the desired icon with some CSS.
Regards,
Nadezhda Tacheva
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Is there no built in way to add a simple red circle to an icon?
I think this a very basic functionality.
Needed pretty much in any app.Hello,
Thank you all for your feedback! It will be taken into consideration once the component discussions are initiated.
As Enrico mentioned, the Badge component will most likely include various options for configuration apart from being a simple wrapper ( such as position, alignment, appearance ). In the meantime, you can check how a Badge component could like in its Angular version, for example - Kendo UI for Angular Badge Overview.
Regards,
Nadezhda Tacheva
Progress Telerik
Good morning all,
in my mind Telerik badge is not only a simple span wapper but it provides the possibility to wrap other components in order to positioning the badge with some directive like: Position.Top, Postion.Bottom, etc.. It can also include animations out of the box.
Just to be clear:
<TelerikBadge Class="badge-secondary" Position="BadgePosition.TopLeft" Animation="AnimationType.FadeIn">
<MyOtherComponent/>
</TelerikBadge>
Someting similar to this Flutter package for example: badges | Flutter Package (pub.dev)
It would be nice to have the similar css syntax as Bootstrap, so <span class="badge badge-secondary">New</span> is preferred. A wrapper would be overkill. I had a discussion in https://www.telerik.com/forums/style-documentation-13585dbd6a40#1465094 and it would be very nice if the Telerik default theme adheres to the Bootstrap css class names to make switching between themes easy (and lookup).
Just wondering about your use-case, Dennis - What would be the timesaver, when you just could create the span instead?
Do you need some logic on it?
<span class="badge badge-secondary">New</span>
<TelerikBadge Class="badge-secondary">New</TelerikBadge>