Setcellmeta to save in database

Tags: #<Tag:0x00007efc62078108>

Hello support,

Would you please suggest best way to save cell properties in the database?

In my code hot.setcellmeata is working fine however I would like to replace text to text in the database as well.

What would be the best way?

‘Bold’:{
name: ‘Bold’,
callback:function(key, options){
console.log(“key”,key,“option”,options,options[0].start.row);
hot.setCellMeta(options.start.row, options.start.col, ‘className’, ‘bold’);
hot.render();
},

Afterchanges doesn’t detect setCellMeta changes.

Hi @mailtodaman

afterSetCellMeta is trigger for cell meta change. Here’s an example https://jsfiddle.net/AMBudnik/4qok2amf/

Thank for reply. Now I am using example given at http://jsfiddle.net/ouabc4y5/ for editor which fulfills the requirement.

1 Like

Thank you for the quick update, @mailtodaman
I guess that we can close the topic.