Jump to content

How to add icon with attached hint into StringGrid Caption Cell?


rgreat

Recommended Posts

On 8/21/2020 at 9:50 PM, mhmda said:

Ext.create('Ext.tip.ToolTip', {
                    target: c.getEl(),//your element
                    html: 'Refresh'//<-- custom html
                  });

 

In some cases I use this code.

Right. Now I need to understand how can I attach this tooltip to an <img> inside caption or at least to a string grid column caption.

Tried several approaches but nothing seems to appear.

I'm at loss what I need to provide as target to the ExtJS constructor.

I have something like this:

ConfDeliveryTable.Columns[3].Title.Caption:='Paper Type<img border="0" id="rg-test-id" src="Files/Info.svg" width="16" height="16">';
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...