css for a user image on image button

Hello,

My application has a user profile button defined as:
{view:“button”, id:“UserBtn”, type:“iconTop”,label:“User Name”, icon:“fa fa-user-circle”, css:“webix_transparent”}

I would like to display a round image of the logged-in user (like the comments widget avatar) in the place where the icon is displayed in the above button definition.

Once the user logs into the application I replace the “User Name” label value with their actual name. I would like to do this with an ‘imageTop’ button
but im not having luck defining a css that would show a round image if the user above the user’s name.

Thanks

Hello, @Pieter

Any HMTL can be inserted into the button through the label.
When one button should correspond to different types, it may be more convenient to set all the necessary content through the label - this gives a customizable layout

Here is a snippet: Code Snippet