Skip to content

How to clear all custom cell styles at once? #1634

Closed Answered by KiddoV
KiddoV asked this question in Q&A
Discussion options

You must be logged in to vote

Just realized I can do something like this:

//Reset all custom cell styles applied
for (let row = 0; row < table.rowCount; row++) {
    for (let col = 0; col < table.colCount; col++) {
        const customStyleId = table.customCellStylePlugin.getCustomCellStyleId(col, row);
        if (customStyleId) {
            xdFwTbIns.arrangeCustomCellStyle({col: col, row: row}, "");
        }
    }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by KiddoV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant