Jump to content

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


Recommended Posts

Posted

When I add hint with default CSS tricks it either  not visible, or displays cropped inside the cell.

Maybe there is some kind of ExtJS trick available?

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

 

In some cases I use this code.

  • Like 1
Posted
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">';
 

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...