Button with Notification Badge [closed]

asked 2018-05-09 17:14:33 +0800

andij62 gravatar image andij62
301 1 6

updated 2018-05-09 19:14:42 +0800

Hi all,

i need a button with a badge at the end of the label. Does anyone know how this works?

Regards Andi

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by cor3000
close date 2018-05-16 09:22:48

1 Answer

Sort by ยป oldest newest most voted

answered 2018-05-14 16:42:55 +0800

cor3000 gravatar image cor3000
3922 1 7
ZK Team

updated 2018-05-16 09:23:18 +0800

An easy way is to use the xhtml namespace to provide custom content for a button:

see: http://zkfiddle.org/sample/3lu9e91/1-button-with-badge

Of course you can create a fully-fledged custom component extending the default button with a custom mold to render a notification badge (for this case I think it's a bit overkill)

link publish delete flag offensive edit


Perfect! Thank you

andij62 ( 2018-05-15 23:16:44 +0800 )edit

you're welcome

cor3000 ( 2018-05-16 09:22:58 +0800 )edit

Question tools

1 follower



Asked: 2018-05-09 17:14:33 +0800

Seen: 8 times

Last updated: May 16