Is there a way to customize the tooltip in the Ext.grid.column.Action? I'd like to set the autoHide to false.
Thanks in Advance
Is there a way to customize the tooltip in the Ext.grid.column.Action? I'd like to set the autoHide to false.
Thanks in Advance
You can by overriding or extending the ActionColumn.
You can see from the QuickTipManager docs that if you set a data item,
data-hide="user"is the equivelent ofautoHide=false.The ActionColumn doesn't expose that functionality, it just uses the defaults, so we have to override the ActionColumns's
defaultRenderer.The defaultRenderer is a protected template function, so we can provide our own renderer and a custom config.
Start by copying the existing defaultRenderer source from the ActionColumn and then adding a few lines to handle our new config.
We can add a custom
tooltipAutoHideconfig to the action config. Then in the defaultRenderer, we can read that config, defaulting to true, and render outdata-hide="user"iftooltipAutoHide:falseis set.Here is an example. The relevant lines are
Read the config
Render out 'data-hide="user"' if false
In column definition, set
tooltipAutoHide:trueHere is the full sample
Here's a working Sencha Fiddle example.