Select to view content in your preferred language

changing info in pop-up

313
1
11-17-2023 01:39 AM
JLM
by
Emerging Contributor

Hi experts,

is it possible to change the info in the pop-up? It would be nice if there is a little more info and not the same title. So it's easier to know which one to select.

image.png

thanks in advance,

Lee

Tags (1)
0 Kudos
1 Reply
KenBuja
MVP Esteemed Contributor

Yes, you can add additional information to the title property of the template. For example

const template = {
  title: "Earthquake Info for {place}",
  content: "Magnitude {mag} {type} hit {place} on {time}",
  fieldInfos: [
    {
      fieldName: "time",
      format: {
        dateFormat: "short-date-short-time"
      }
    }
  ]
};

will give you this result

template.png