Skip to main content

Image

The image component enables the user to add a picture or graphic, either with a URL, directly from an entity (Document type attribute), or from the Resources section of the app.

URL​

If you have the Image URL, then it should added with quotation marks. For example:

(_, db, ctx) => "https: //d39-a.sdn.cz/d_39/c_img_QO_p/UIvM/example_image.jpeg"

Document type attribute​

If you want to show an image that has been uploaded as a document to an entity, the coding would look as follows:

(item, db, ctx) => App.Urls.Documents.Generate(item.Image)

Resources​

If you want to show an image that has been uploaded to the Resources section of the app (i.e., Config > Resources), then the coding would look as follows, with "example_image_png" as the name and type of file that will be shown:

(_, db, ctx) => App.Urls.Resources.example_image_png.Generate()