Suggestion for Colvis to put the showAll/restoreAll buttons at the top of the listing

Suggestion for Colvis to put the showAll/restoreAll buttons at the top of the listing

Fredon78Fredon78 Posts: 12Questions: 0Answers: 0
edited August 2012 in Feature requests
Hello Allan,

Wouldn't it be interesting to replace code 1 by code 2 in order to have the Show all/ restore all buttons at the top of the listing.
It is useful when you have a big column listing and the end user do not know the existence of this useful buttons.
So it is just suggestions.
Thanks.
Fred

code 1:
[code]
/**
* Loop through the columns in the table and as a new button for each one.
* @method _fnAddButtons
* @returns void
* @private
*/
"_fnAddButtons": function ()
{
var
nButton,
sExclude = ","+this.s.aiExclude.join(',')+",";

for ( var i=0, iLen=this.s.dt.aoColumns.length ; i

Replies

  • allanallan Posts: 57,244Questions: 1Answers: 9,113 Site admin
    Good plan - thanks for sharing that with us.

    Long term the plan is actually the merge ColVis into TableTools, since TableTools already has the majority of the code required for implementing what ColVis does on its own, and TableTools has a lot more configurability - making this kind of customisation a breeze.

    Allan
  • Fredon78Fredon78 Posts: 12Questions: 0Answers: 0
    edited August 2012
    Actually I had to cancel this sample code change because it caused a switch on the index and induced buggy behaviour.
    But I am looking forward for the opportunity to have the option to put these buttons at the top cause IMHO at the user ergonomy level is better to have these button located at the top.
    Thanks. Fred
This discussion has been closed.