Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Hidden visuals setting data

Hello every one, I create a custom visual and consult code from sampleBarChart in this link github. https://github.com/microsoft/PowerBI-visuals-sampleBarChart/tree/condFormat/Tutorial And I have ...
  • dm-p's avatar
    1 year ago

    Hi Anonymous,

     

    When you say 'hide,' do you mean remove/comment out as per your screenshot? If so, this will not populate the formatting model and will be inaccessible, as you have experienced.

     

    If you are using powerbi-visuals-utils-formattingmodel to manage your formatting model, you can add and set the visible property of your settings class that represents the CompositeCard to false (while the rest of your code isn't available in OP, I would assume that your GeneralViewCardSettings class extends CompositeCard). By setting the visibility, your model is still processed as intended (and the property is therefore available for persistence/retrieval).

    Regards,

     

    Daniel