You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AdaptiveCard JS SDK offers a way to extend the list of supported elements in the card as described here. It requires configuration of element registry and creation of serialization context that can then be used by card during parsing.
React wrapper does not provide any means to access this extensibility currently.
Proposed solution
It is straight forward to let users of React wrapper get access to this extensibility by exposing additional property for SerializationContext and then passing it down to AdaptiveCard's parse method.
Alternatives or Workarounds
Currently, the only way around I see, when in React context, is to create custom wrapper around AC JS SDK which, however, most likely would repeat most of the code of existing wrapper from adaptivecards-react.
The text was updated successfully, but these errors were encountered:
Problem Statement
AdaptiveCard JS SDK offers a way to extend the list of supported elements in the card as described here. It requires configuration of element registry and creation of serialization context that can then be used by card during parsing.
React wrapper does not provide any means to access this extensibility currently.
Proposed solution
It is straight forward to let users of React wrapper get access to this extensibility by exposing additional property for SerializationContext and then passing it down to AdaptiveCard's
parse
method.Alternatives or Workarounds
Currently, the only way around I see, when in React context, is to create custom wrapper around AC JS SDK which, however, most likely would repeat most of the code of existing wrapper from adaptivecards-react.
The text was updated successfully, but these errors were encountered: