Novice here. I Used editor generator and it was easy. BUT how to mix these buttons?

Novice here. I Used editor generator and it was easy. BUT how to mix these buttons?

acdigitalacdigital Posts: 9Questions: 3Answers: 0
edited July 2014 in Priority support
"tableTools": { "sRowSelect": "os", "aButtons": [ 
{ "sExtends": "editor_create", "editor": editor }, 
{ "sExtends": "editor_edit", "editor": editor }, 
{ "sExtends": "editor_remove", "editor": editor }
] } 
"sDom": 'T<"clear">lfrtip', 
"oTableTools": { "aButtons": 
[ "copy", "print", { "sExtends": "collection", "sButtonText": "Save", "aButtons": [ "csv,", "xls", "pdf" ] ] } } );
} );
}(jQuery));

Answers

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    Hi,

    The way to do it is to have just one tableTools option (btw oTableTools and tableTools are the same - just that the former has been updated for the 1.10 naming scheme).

    So you might have:

    "tableTools": {
        "sRowSelect": "os",
        "aButtons": [{
                "sExtends": "editor_create",
                "editor": editor
            }, {
                "sExtends": "editor_edit",
                "editor": editor
            }, {
                "sExtends": "editor_remove",
                "editor": editor
            }
            "copy",
            "print", {
                "sExtends": "collection",
                "sButtonText": "Save",
                "aButtons": ["csv,", "xls", "pdf"]
            ]
        }
    }
    

    Regards,
    Allan

This discussion has been closed.