@ForUseOnly public static interface DataTemplating.ParameterSet
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(String name,
String text)
Adds text as parameter for attribute use.
|
void |
addHtml(String name,
String html)
Adds HTML as parameter.
|
void |
addImage(String name,
Image<?> image,
String altText)
Adds an image as parameter.
|
void |
addMedium(String name,
Media media,
Resolution resolution)
Adds a medium as parameter.
|
void |
addText(String name,
String text)
Adds text as parameter.
|
void addText(@NotNull String name, @NotNull String text)
name
- The parameter name.text
- The text to set.void addHtml(@NotNull String name, @NotNull String html)
name
- The parameter name.html
- The HTML to set.void addAttribute(@NotNull String name, @NotNull String text)
name
- The parameter name.text
- The text to set.void addImage(@NotNull String name, @NotNull Image<?> image, @NotNull String altText)
name
- The parameter name.image
- The image to set.altText
- The text to set the images alternative text.void addMedium(@NotNull String name, @NotNull Media media, @Nullable Resolution resolution)
Picture
, a valid img-tag will be created from it
and then applied to the template. If a resolution is given, the picture's image will be of the according resolution. If no resolution is given,
the default resolution will be used.File
, its file type based image will be used to create an img-tag then applied to the template.
In this case, a given resolution will be ignored.name
- The parameter name.media
- The media to set.resolution
- The resolution to use (pictures only).Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210