Upgrade Guide v4.0 to 4.1

Version 3.5 Upgrades

If you are upgrading from any version of tabulator below version 4.0, you should read the v3.5 to 4.0 upgrade guide first, as there were significant changes to the Tabulator API in the 4.0 release.

Clipboard

Include Column Headers In Clipboard Output

The clipboardCopyHeader option has now been depricated, where you used to use it:

var table = new Tabulator("#example-table", {
    clipboardCopyHeader:false, //disable header titles in copied data
});

You should now use:

var table = new Tabulator("#example-table", {
    clipboardCopyConfig:{
        columnHeaders:false, //dont include column headers in clipboard output
    },
});

Formatters

Tick Formatter

The tick formatter has now been depricated, where you used to use it:

{title:"Driver", field:"driver", formatter:"tick"},

You should now use:

{title:"Driver", field:"driver", formatter:"tickCross", formatterParam:{
	crossElement:false,
}},

Editors

Tick Editor

The tick editor has now been depricated, where you used to use it:

{title:"Driver", field:"driver", editor:"tick"},

You should now use:

{title:"Driver", field:"driver", editor:"tickCross"},

Select Editor Value

Passing values directly into the select editors editorParams object has now been depricated, where you used to use it:

{title:"Name", field:"name", editor:"select", editorParams:{
    "steve":"Steve Boberson",
    "bob":"Bob Jimmerson",
    "jim":"Jim Stevenson",
}}

You should now pass them into the values property of the editorParams object:

{title:"Name", field:"name", editor:"select", editorParams:{
    values:{
        "steve":"Steve Boberson",
        "bob":"Bob Jimmerson",
        "jim":"Jim Stevenson",
    }
}}