Skip to content

Instantly share code, notes, and snippets.

@JitendraZaa
Created May 8, 2022 04:16
Show Gist options
  • Save JitendraZaa/9b7f8dd16e78fa348a0c2a86ba01f819 to your computer and use it in GitHub Desktop.
Save JitendraZaa/9b7f8dd16e78fa348a0c2a86ba01f819 to your computer and use it in GitHub Desktop.
Source to access LWC context in adaptive card
Object.defineProperty(CardElement.prototype, "lwcRef", {
get: function () {
if (this._lwcRef) {
return this._lwcRef;
}
},
set: function (value) {
this._lwcRef = value;
},
enumerable: false,
configurable: true
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment