Change title/tooltip for searchPanes

Change title/tooltip for searchPanes

ArielSAdamsNASAArielSAdamsNASA 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

  • colincolin Posts: 14,534Questions: 1Answers: 2,484

    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

  • ArielSAdamsNASAArielSAdamsNASA Posts: 105Questions: 15Answers: 0

    @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.

  • colincolin Posts: 14,534Questions: 1Answers: 2,484

    Please see here - it's my example with the word "example" added to the title attribute,

    Colin

  • ArielSAdamsNASAArielSAdamsNASA Posts: 105Questions: 15Answers: 0

    @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:

    DataTables warning: table id=DataTables_Table_0 - Requested unknown parameter '0' for row 0, column 0. For more information about this error, please see http://datatables.net/tn/4
    

    http://live.datatables.net/yuyelado/13/edit

  • colincolin Posts: 14,534Questions: 1Answers: 2,484

    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

Sign In or Register to comment.