set different color and font for one cell

hi,
One cell's value is "34KG".
Then I need to set different color and font for "34" and "kg",
how can I do that? thanks a lot!

Tagged:

Comments

  • Hello @zzhang,

    how can I do that? thanks a lot!

    There are a few ways you could do this:

    1. Wrap the cell value inside of an HTML tag and style it appropriately: https://snippet.webix.com/mfv8kk2y

    2. Redefine the default cell template for a specific column: https://snippet.webix.com/09el2tce

    Please note that the first example means that you will have HTML tags as your sheet data, which is why the tags will also get exported along the way. If you do plan to export the data at any point, the better solution would be to redefine the default cell template, as it doesn't affect the sheet data.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion