microsoft / microsoft/BotFramework-WebChat
Sample: Card action trigger JavaScript
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 1.8k
- Forks
- 1.6k
- Avg merge
- 22h 58m
- Merged PRs (30d)
- 2
Description
Build a sample that the user can use card action (suggested actions or rich card), to trigger a function in JavaScript. It could be based on "openUrl" to "about:blank#action-name" and we use a middleware to catch that.
This mechanism is currently being used in SSO sample.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing SSO sample, then inspect how card actions and the middleware mechanism are handled. Build a sample showing a suggested action or rich card triggering a JavaScript function through the described openUrl mechanism, and verify that the action is demonstrated end to end.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100