Adaptivecards: Create Adaptive Cards with JavaScript?

Created on 23 Jun 2017  路  2Comments  路  Source: microsoft/AdaptiveCards

Is it possible to create Adaptive Cards with JavaScript? I want to build my cards at run-time, both client and server, and use a builder library i.e. not have to hand write the JSON. Hopefully, this question makes sense?

Question

All 2 comments

There's a microsoft-adaptivecards npm module that provides a library for constructing and rendering cards, but that's not going to prevent you from have to work with JSON. Alternately, with the .NET library you can create the card without using JSON, and then pass it back as JSON through serialization to the front-end. Then use the JS library to render it, while attaching whatever actions you need.

Thanks @szul for helping out! @iwaldman hopefully this answer your question, if not, please feel free to ask on Stack Overflow where it's easier for provide questions to answers:

https://stackoverflow.com/questions/tagged/adaptive-cards

Was this page helpful?
0 / 5 - 0 ratings