Posted 9 March 2022, 12:56 am EST
Can you tell me, why this simple test case doesn’t pass?
Workbook workbook = new Workbook(); IStyle thinStyle = workbook.getStyles().add("thin"); thinStyle.getBorders().setLineStyle(BorderLineStyle.Thin); String json = workbook.toJson(); assertThat(json).contains("thin");
The reason I would need this is as follows: a SpreadJS is created from the JSON in the client. Depending on the user input, a corresponding style should then be set, but this does not work because the style is not exported at all.
Is there a way that the style is also exported, although it is not (yet) explicitly used?
Best regards Matthias