cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Displaying Images

gilgi
DynaMight Champion
DynaMight Champion

Question:

As part of an application help I want to display images. I've put them in the assets folder and am accessing them, but they are not displayed. Furthermore, I'm seeing the the developer tools that for some reason, they are being downloaded as HTML instaed of images.

I'm using a standard img tag as in the the workflow creator sample app (https://github.com/Dynatrace/automation-workflow-creator/blob/main/src/app/components/WorkflowCard.t...).

Am I missing some definitions that should be done?

Gil.

1 REPLY 1

stefan_eggersto
Dynatrace Mentor
Dynatrace Mentor

Hi @gilgi ,

This repo has the assets folder re-configured; see automation-workflow-creator/app.config.ts at main · Dynatrace/automation-workflow-creator · GitHub.

I'd suggest to stick to the default value and use the folder structure of the default template:

  • put your images into src/assets
  • reference them from your code (e.g. for the src attribute of images) as ./assets/<your-image.png>

Let me know if this works!

Featured Posts