question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Designer] Does the templating system support simple string arrays? e.g. ["Red","Blue","Yellow"]

See original GitHub issue

My JSON data model looks like:

{
    "image" : "hazelnut.jpg",
    "clade" : [
        "Tracheophytes",
        "Angiosperms",
        "Eudicots",
        "Rosids"
    ],
    "name" : "American Hazelnut",
    "order" : "Fagales",
    "family" : "Betulaceae",
    "genus" : "Corylus",
    "species" : "Corylus Americana"
}

How do I map the array value of clade to the text property on an adaptive card’s items array?

This is what I’m trying to do: https://docs.microsoft.com/en-us/adaptive-cards/templating/language#repeating-items-in-an-array

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
GlitterHorncommented, Jan 13, 2020

That’s perfect, thanks!

1reaction
matthidingercommented, Jan 13, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Template literals (Template strings) - MDN Web Docs - Mozilla
Template literals are literals delimited with backtick (`) characters, allowing for multi-line strings, string interpolation with embedded ...
Read more >
Simple JavaScript template literals to insert iterated values ...
I want to use a template literal, i.e. backticks, to insert elements from an array into my HTML. Essentially, I want to create...
Read more >
Introduction to Templating | Craft CMS Documentation | 4.x
Twig templates are HTML files that are sprinkled with bits of Twig code. When Twig loads a template, the first thing it will...
Read more >
How to create an array of templated class objects?
No. All elements of an array are of the same type. · Elements of an array have to have the same type. ·...
Read more >
Template functions - arrays - Azure Resource Manager
This article describes the template functions for working with arrays. To get an array of string values delimited by a value, see split....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found