Change title/tooltip for searchPanes
Change title/tooltip for searchPanes
ArielSAdamsNASA
Posts: 105Questions: 15Answers: 0
Link to test case: http://live.datatables.net/riyejume/14/edit
Description of problem: Is there a way to change the tooltip for an option in the searchPanes? For example, I want the tooltip to be "flight software" not "flight" for the flight option in Project Type.
Answers
You could try something like this from this thread - it's changing how the number is calculated, but you can do something similar for the text field too.
Colin
@colin
http://live.datatables.net/riyejume/15/edit
Not sure how to implement that. It seems to be implementing it at a filter level, when I want it at a label level. I tried adding the render function at the label level, but it does not work.
Please see here - it's my example with the word "example" added to the
title
attribute,Colin
@colin
In your example, it applies the word "example" to title for all the options in the Position filter or searchPane. How would you add the word "example" to just one option, say the first option which is Data Coordinator? I don't want the title to be applied at the filter level, but at the label level.
When changing the target from 0 to 1, I get:
http://live.datatables.net/yuyelado/13/edit
Yep, there is only column so it has to be zero. If you want it elsewhere, you'll need to apply logic - either checking the string or some other criteria - my examples was just to demonstrate how to do it,
Colin