Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Question about custom canvasitem and revert

    EDIT: it looks like that onShowValue is indeed called on resetvalues. I looked in the wrong place, my bad.

    Hi there. In your showcase there's an example, "Canvasitem showpending support". This showcase has a remembervalues button. It does not, however, have a resetvalues-button.

    I have an issue where a custom formitem does not revert it's visual state when resetvalues is called. I had thought that onShowValue would be called with the 'old' value when resetvalues is called, but this seems not to be the case.

    What callback can i listen for to reset the item's visual state when resetValues is called? I thought i'd override setValue(), but that doesn't seem possible?


    Pointers much appreciated, cheers
    Last edited by mathias; 19 Sep 2022, 06:31. Reason: made a mistake
Working...
X