Skip to content

Commit

Permalink
[UWP] Add handling for column fallback (#3197) (#3288)
Browse files Browse the repository at this point in the history
* [UWP] Add handling for column fallback (#3197)

* [UWP] Add handling for column fallback

* Fix shared model x64 build

* Test updates
  • Loading branch information
RebeccaAnne authored and shalinijoshi19 committed Jul 31, 2019
1 parent c80768d commit 4f210fa
Show file tree
Hide file tree
Showing 54 changed files with 1,163 additions and 795 deletions.
49 changes: 49 additions & 0 deletions samples/v1.2/Elements/Column.Fallback.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"type": "AdaptiveCard",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"items": [
{
"type": "Graph"
}
],
"fallback": {
"type": "Column",
"items": [
{
"type": "TextBlock",
"text": "Fallback"
}
]
},
"width": "auto"
},
{
"type": "Column",
"items": [
{
"type": "Graph"
}
],
"fallback": "drop"
},
{
"type": "Column",
"items": [
{
"type": "TextBlock",
"text": "This is a column",
"wrap": true
}
]
}
]
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
}
1 change: 1 addition & 0 deletions samples/v1.2/Tests/ContainerDoubleFallback.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "type": "AdaptiveCard", "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.2", "body": [ { "type": "whoknows", "fallback": { "type": "Container", "items": [ { "type": "notme" } ], "fallback": { "type": "TextBlock", "text": "Hello World" } } } ]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
<ClCompile Include="AdditionalPropertiesTest.cpp" />
<ClCompile Include="Base64Test.cpp" />
<ClCompile Include="ContainerStyleTest.cpp" />
<ClCompile Include="FallbackTests.cpp" />
<ClCompile Include="UnsupportedtypesParsingTest.cpp" />
<ClCompile Include="EnumTest.cpp" />
<ClCompile Include="EverythingBagel.cpp" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,8 @@
<ClCompile Include="ContainerStyleTest.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="FallbackTests.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>
Loading

0 comments on commit 4f210fa

Please sign in to comment.