Skip to main content
Skip table of contents

src

An HTML content command for setting the "src" attribute on an element.

The value of the "src" depends on what the type of this command's primary attribute's resolved value is. If the resolved value is a File, the data is converted into a data URI which is used as the value. If the resolved value is a String, it is directly used as the value.

This command has a priority of 15.

Examples

If you have an image File in the variable context, src can be used to display that image in HTML content:

CODE
<img dyn-src="drawing"/>

If you wish to display some external image instead and linking to it directly is fine, have the image's URL in a String and give that to src:

CODE
<img dyn-src="drawingURL"/> 
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.