<Image> controls are used to embed graphics.
|
Attribute |
Description |
|---|---|
|
|
Defines the color of the icon. Possible values:
|
|
|
Image that is displayed. Refers to a property ( Possible values: File system path to the graphic file or data binding expression (Image, Base64, String, URL) If an internal graphic file is used, the graphic file must be contained in the folder If the image is accessed via an external URL, then the attribute
|
|
|
Defines a color for the background of the control.
Possible values:
|
|
|
Defines if the control has a border. Possible values: |
|
|
Defines whether a left border is displayed Possible values: |
|
|
Defines whether a right border is displayed Possible values: |
|
|
Defines whether a top border is displayed Possible values: |
|
|
Defines whether a bottom border is displayed Possible values: |
|
|
Defines whether the user can interact with the control.
Possible values: The |
|
|
Defines a color for the foreground of the control (texts etc.).
|
|
|
Height of the control Possible values: Integer |
|
|
Direction in which the elements flow. The order of the elements corresponds to their declaration. Possible values:
|
|
|
Defines what happens if the page is full. Possible values:
|
|
|
Defines a tooltip to be displayed under a graphic/icon.
Possible values: any string or expression for data binding |
|
|
Defines the unit that applies to size specifications. Possible values:
|
|
|
Defines if the control is visible.
Possible values: |
|
|
Width of the control Possible values: Integer |
The size of the image can be adjusted using the general attributes height and width. The default value is in pixels.
If only height or width is specified, the aspect ratio is maintained. If both height and width are specified, the image will be distorted.
If size specifications are defined neither on the image control nor on the parent element (via the general attributes height and width), display problems may occur in some browsers.
<SelectAction/> within an Image control
The Select action is created using the <SelectAction/> element within <Image> and is triggered once a user selects the image.
<DoubleclickAction> within an Image control
The DoubleClick action is created using the <DoubleClickAction/> element within <Image> and is triggered once a user double-clicks the image.
Example <Image> from static resource
The following example shows the usage of the <Image> tag.
<DetailComponent name="ExampleImage" path="ExampleImage" displayName="Example Image">
<FlowLayout>
<Image value="image.jpg"/>
</FlowLayout>
</DetailComponent>
Example <Image> with data binding (dynamically from a Technical Process)
Images in Base64 format
The following example shows the usage of the <Image> tag with data binding.
<DetailComponent path="ExampleImageWithDataBinding" name="ExampleImageWithDataBinding" displayName="Example Image with Data Binding" default="true" process="Image.wrf">
<Properties>
<Property name="image" type="Base64" />
</Properties>
<FlowLayout>
<Image value="#image"/>
</FlowLayout>
</DetailComponent>
The data provided by the Technical Process Image.wrf must have the following format:
<?xml version="1.0" encoding="UTF-8" ?>
<Ok>
<image mediaType="image/jpeg">
<!-- Base64String -->
</image>
</Ok>
Images from an external URL
The following example shows the usage of the <Image> tag with data binding.
<DetailComponent
path="ExampleImageWithDataBinding"
name="ExampleImageWithDataBinding"
displayName="Example Image with Data Binding"
default="true"
process="Image.wrf">
<Properties>
<Property name="image" type="Image" />
</Properties>
<FlowLayout>
<Image value="#image"/>
</FlowLayout>
</DetailComponent>
The data provided by the Technical Process Image.wrf must have the following format:
<?xml version="1.0" encoding="UTF-8" ?>
<Ok>
<image mediaType="image/png" type="external">
<![CDATA[https://softproject.de/de/wp-content/uploads/sites/2/2019/01/LogoSoftProject.png]]>
</image>
</Ok>