Select to view content in your preferred language

ToolTip Formatting

1032
4
05-03-2010 12:34 PM
LisaShertz
Occasional Contributor
In my ToolTip I would like to change to a bold font the 'titles" of the attributes that I am showing, while leaving the attributes non bold.

For example, instead of:

Description:
Blah blah blah blah blah blah blah blah blah. Blah blah blah blah blah blah blah blah blah. Blah blah blah blah blah blah blah blah blah.

Contact:
Blahblah Blahblah.

I would like:

Description:
Blah blah blah blah blah blah blah blah blah. Blah blah blah blah blah blah blah blah blah. Blah blah blah blah blah blah blah blah blah.

Contact:
Blahblah Blahblah.

I can change the appearance of the whole ToolTip, but how do I change just a part?

The attributes and their titles are defined in a queryTask

Lisa Shertz
Gis Analyst
Longmont, Colorado
Tags (2)
0 Kudos
4 Replies
KenBuja
MVP Esteemed Contributor
Take a look at this blog about formatting ToolTips: http://flexscript.wordpress.com/2008/08/19/flex-html-tooltip-component/
0 Kudos
LisaShertz
Occasional Contributor
Ken,

That looks great!

I'll give it a try.

Lisa Shertz
GIS Analyst
Longmont, Colorado
0 Kudos
DasaPaddock
Esri Regular Contributor
It sounds like this is more than you need, but just in case, this sample shows how you can create custom tool tips where you can then show whatever you'd like:
http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=MapTips
0 Kudos
LisaShertz
Occasional Contributor
It sounds like this is more than you need, but just in case, this sample shows how you can create custom tool tips where you can then show whatever you'd like:
http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=MapTips



Thanks Dasa. That does look a bit simpler. I'll give it a try.

Lisa Shertz
GIS Analyst
Longmont, Colorado
0 Kudos