dataTip Tip

Here’s how to prevent a dataTip from appearing.

Say you are using dataTips in a DataGrid. For the most part the dataTip shows useful information. But sometimes a tip gets shown that’s not so useful. Perhaps the tip is blank or zero. You’ll still get the tip pop-up, but just a small box.

If you add a dataTipFunction you can return null and the dataTip will not be shown:

private function interestRateTip( item:Object ) : String {
     if( item.principle == 0 ) return null;
     else return item.rate;
}