简体   繁体   中英

How to change column title in table that was created by tabulator.js?

I use latest version of tabulator.js and I need ability to change column title in tables that already exists. Any ideas?

Thank you!

Once the column has been created it cannot be changed, but you can remove the existing column and replace it with another column with an updated definition:

remove existing column:

table.deleteColumn("fieldName");

add column:

table.addColumn({title:"Age", field:"age"});

More details can be found in the Column Definition Documentation

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM