sp-dev-docs
sp-dev-docs copied to clipboard
Typo on the code sample? Sample doesn't work...
[Enter feedback here]
Hi all,
The sample code doesn't work, it seems at least there is a typo on the source code, but even removing it, the sample doesn't work: "$data": "${items}",
Error that shows is: sp-webpart-workbench-assembly_en-us_ef0090948d9bf05b45d86ea34a7650d0.js:69
TypeError: Cannot read properties of undefined (reading 'data')
at t.render (sp-adaptive-card-extension-web-part_en-us_c607b41469e1fde0768a.js:2:1348699)
at Bo (sp-webpart-workbench-assembly_en-us_ef0090948d9bf05b45d86ea34a7650d0.js:69:75856)
at No (sp-webpart-workbench-assembly_en-us_ef0090948d9bf05b45d86ea34a7650d0.js:69:75651)
at ys (sp-webpart-workbench-assembly_en-us_ef0090948d9bf05b45d86ea34a7650d0.js:69:111120)
at pc (sp-webpart-workbench-assembly_en-us_ef0090948d9bf05b45d86ea34a7650d0.js:69:102601)
at uc (sp-webpart-workbench-assembly_en-us_ef0090948d9bf05b45d86ea34a7650d0.js:69:102526)
at ac (sp-webpart-workbench-assembly_en-us_ef0090948d9bf05b45d86ea34a7650d0.js:69:99556)
at sp-webpart-workbench-assembly_en-us_ef0090948d9bf05b45d86ea34a7650d0.js:69:51350
at t.unstable_runWithPriority (sp-webpart-workbench-assembly_en-us_ef0090948d9bf05b45d86ea34a7650d0.js:69:5166)
at Gi (sp-webpart-workbench-assembly_en-us_ef0090948d9bf05b45d86ea34a7650d0.js:69:51060)
Identified the issue, as per: https://adaptivecards.io/designer, Bolder and None are not accepted, only bolder and none, changing that, the code works.
in the JSON src/adaptiveCardExtensions/helloWorld/quickView/template/QuickViewTemplate.json
"weight": "Bolder",
... "spacing": "None"
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 9e3f292b-a765-b991-94ed-2334a65e809f
- Version Independent ID: ca97f687-37d4-828d-1c15-c3f4b01f1446
- Content: Advanced Quick View Functionality
- Content Source: docs/spfx/viva/get-started/advanced-quick-view-functionality.md
- Product: sharepoint
- Technology: sharepoint-framework
- GitHub Login: @VesaJuvonen
- Microsoft Alias: vesaj
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.