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
<!--- Morgan Stanley makes this available to you under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
2
+
--->
3
+
4
+
# ComposeUI Default App
5
+
6
+
This is a simple webpage that loads adaptive-cards and showcases a button which launches an alert when clicked.
7
+
8
+
## During Development
9
+
10
+
```npm i
11
+
12
+
npx lerna run start --stream --scope=@morgan-stanley/composeui-example-adaptive-cards
// Morgan Stanley makes this available to you under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
2
+
3
+
import*asAdaptiveCardsfrom"adaptivecards";
4
+
5
+
// Author a card
6
+
varcard={
7
+
"type": "AdaptiveCard",
8
+
"version": "1.6",
9
+
"body": [
10
+
{
11
+
"type": "TextBlock",
12
+
"text": "Clicking on the button below will cause an alert"
13
+
}
14
+
],
15
+
"actions": [
16
+
{
17
+
"type": "Action.OpenUrl",
18
+
"title": "Click me"
19
+
}
20
+
]
21
+
};
22
+
23
+
// Create an AdaptiveCard instance
24
+
varadaptiveCard=newAdaptiveCards.AdaptiveCard();
25
+
26
+
// Set its hostConfig property unless you want to use the default Host Config
27
+
// Host Config defines the style and behavior of a card
<!-- Morgan Stanley makes this available to you under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->
0 commit comments