Skip to content

Passing simple or complex properties to custom elements from the adaptive card using SDK #6902

Discussion options

You must be logged in to vote

I found a way...
I used this code when I set the host config for AC:
hostConfig.hostCapabilities.setCustomProperty("__test", 123);
and this one into the custom element or action:
this.hostConfig.hostCapabilities.getCustomProperty("__test");
In this way it's working!

It's the best option avaible?
It's correct to use this way to passing "context" props to custom elements/actions?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fabiofranzini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant