Justinmind-logo
 

Inline icons in buttons or headlines or texts

Robert Kuehn shared this question 3 months ago
Need Answer

Very often I want to add icons to a button before the title, or before a heading in Acoordion or in a menu. But this shapes are always rectangles where I cannot insert a icon? So when I want to use a Icon I always create a group but with the predefined elements it is not very well working because all events and layouts getting stucked.. Is there a hidden trick, how to edit like the innerHTML of a button or a text?

Comments (4)

photo
1

You can try setting a background image and then playing with the padding options.

photo
1

I know.. the positioning of the background image is also not to so bad.. But when you want it connect to a event because it might a alert icon right aligned or you want to scale the background image I was not able to do so.

photo
1

When you say 'events and layouts get stucked' what do you mean?

photo
1

For example when I use a acoordion out of the Bootstrap package and want a icon in the header line, all events which are bind to collapse the accordions get destroyed when I replace the rect with the group, which includes the icon.

photo