Forum Discussion

Gazzer's avatar
Gazzer
Resolver II
3 years ago

Custom JSON Themes break Table and Matrix Styles

If you create a custom JSON theme which applies formatting to tableEx or Matrix, the formatting applies to ALL styles which makes the style presets worthless.

I have asked how to write the JSON to make this work (Configure a JSON Theme for Different Table Style Presets ), but nobody seems to know the answer, or even have any suggestions about where to look for the answer. 

Based on reading the validation schema, the way I would expect it to work is simply not allowed.

It should be possible to replace the "*" in tableEx with the name of the style. This used to work (apparently), but the schema does not allow it.

 

 

"tableEx": {
   "Minimal": {...

 

 

People have suggested using the stylePreset tag, but this simply defines which style is chosen by default.

If I am right and this is broken, it needs to be fixed.

If I am wrong and it is possible, then it needs to be explained and documented.

Either way, please can we have a solution.

2 Replies

  • novelnova's avatar
    novelnova
    Regular Visitor

    I have the same problem, any help much appreaciated.
    Worked fine in earlier versions

  • I am really disappointed that nobody (including Microsoft) seems to be able to answer this.

    According to MS documentation:
    "For the visualName and cardName sections, use a specific visual and card name. Currently, the styleName is always an asterisk (*), but in a future release you'll be able to create different styles for your visuals and give them names (similar to the table and matrix style feature)."

    This suggests that this should work, and it briefly did a few years ago.

     

    "tableEx": {
       "Minimal": {...

     

    Come on Microsoft, get one of your clever developrs to take a few minutes out of their busy day and either fix it or tell us how it works. Please, I'm begging.