Skip to content
Discussion options

You must be logged in to vote

This is the way I recommend to do it, yes.

I'd even put a default implementation so it works in the preview without the backend:

export global Backend  {
  in-out property <int> my-value;
  pure callback write-my-value(int);
  // default implementation that can be overridden by the backend
  write-my-value(x) => { my-value = x; }
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jahnf
Comment options

@ogoffart
Comment options

Answer selected by jahnf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants