colvis columnText not working / not implemented yet?

colvis columnText not working / not implemented yet?

rubjorubjo Posts: 5Questions: 1Answers: 1
edited April 2017 in Free community support

This option doesn't seem to work - not on the example page on this site, either. Or am I missing something?

This question has an accepted answers - jump to answer

Answers

  • rubjorubjo Posts: 5Questions: 1Answers: 1

    Anyone? Seems strange for an otherwise extremely well-documented solution to just list an option, have a separate page for demonstrating it and then say nothing about the fact that it actually doesn't work.

    Just a simple "this is a feature in development or this is a known bug" statement would be much appreciated.

  • rf1234rf1234 Posts: 3,036Questions: 88Answers: 423

    Hi Allan,
    I tried it myself based on this example - and yes it does not work. It actually does nothing. The result is the same as for the commented-out colvis button.
    https://datatables.net/reference/button/colvis

    buttons: [
                {
                    extend: 'colvis',
                    columnText: function ( dt, idx, title ) {
                        return (idx+1)+':bla bla '+title;
                    }},
                
    //                        "colvis",
                {   extend: "showAll", className: "showAllcontractGovDeptTable"   }
            ]
    
  • allanallan Posts: 63,881Questions: 1Answers: 10,530 Site admin
    Answer ✓

    Its pre-release I'm afraid. There is a note in the colvis documentation for columnText stating that it is available from 1.3.0+. Buttons 1.2.4 is the current stable release.

    The reason I include the pre-release documentation is that the nightly versions are available which carry these features (although actually, I need to rebuild them, which I'll get going in a moment).

    Allan

  • rubjorubjo Posts: 5Questions: 1Answers: 1

    Ah, thanks, spotted the 1.3.0 note now.

This discussion has been closed.