USING A TOOLTIP TO DISPLAY MORE INFORMATION.
I developed this little "trick" soon after Teamdesk made the dbstyles.css available. It uses the dbsytle.css and xhtml together. Once you add the code to the style sheet, you can use this in any xhtml column so it's useful everywhere.
This is complicated and I cannot explain xhtml and css code here. If you get stuck please let me know you would like to see a tutorial. I will try and find time to create an xhtml tutorial.
First step is to make or edit a dbstyles.css file. If you do not already have a dbstyles.css file, simply create a text file, name it dbstyles.css and upload the file to the database resources.
Inside the dbstyles file put the following.
.tooltip {
position: relative;
display: inline-block;
}
.tooltip .tooltiptext {
white-space:nowrap;
visibility: hidden;
position: absolute;
z-index: 99999;
}
.tooltip:hover .tooltiptext {
visibility: visible;
}
REMEMBER - You have to reupload the file after you make changes to it.
Next create a formula xhtml column. use this code. "of course insert your columns"
<div class="tooltip" style="font-size:12px; ">
<%=[event]%>
<div class="tooltiptext" style="font-style:bold;font-size:14px;text-align:center;border-radius:10px;background-color:navy;border: 2px solid black;color:white;padding-top:5px;">
File Details
<div style="padding:20px; color:black; background:snow;min-height:50px;text-align:left;border-radius:10px;">
Start: <%=[date 1]%><br/>
Stop: <%=[date 2]%>
<br/><br/>
Event: <%=[event]%>
<br/><br/>
Details:<br/>
<%=[Details]%>
</div>
</div>
</div>
THis will make a tooltip that displays directly under the visible text.
THERE IS A SHORTCOMING... with pure css I cannot keep the tooltip from displaying off the edge of the screen. So if the column is on the right edge of the screen, the right side of the tooltip may be too far right and not visible.
I have been handling this situation by simply adjusting the CSS based on where I intend to display the xhtml column. To do this you need to add the following code to the second DIV.
top: -50px; right: 100%
Like this.
<div class="tooltiptext" style="font-style:bold;font-size:14px;text-align:center;border-radius:10px;background-color:navy;border: 2px solid black;color:white;padding-top:5px; top: -50px; right: 100%;">
Use trial and error to adjust the top and right so it displays as you need it.
Anyone can directly contact me to encourage me to make a tutorial for xhtml that should help with this or if you're stuck and need my consulting services. I am on the experts page.
https://www.teamdesk.net/experts?id=21