Image

This widget displays an image that can represent a hyperlink, have alternative text, or make use of other features that are not available in the picture control.

XHTML Specification: <x-subst type="image">

For more information, see <x-subst type="WidgetType"> .

Widget Properties

Widget Properties
Property Description/More Information
Image Source (u_src) Path and file name of the image to display.
Link Value (u_url) Target URL for a link.
Target Window (u_target) Type of target window into which the linked page is loaded.
Shadow Image (u_lowsrc) Path and file name of a low-resolution image to display in the server page while the main image is loading.
Alternative Text (u_alt) Text that is displayed if the image cannot be loaded.
Alignment (u_align) Determines how the image is aligned in the field.
Border (u_border) Width, in pixels, of the border that surrounds the image.
Horizontal Spaces (u_hspace) Number of pixels of white space to be inserted to the left and right of the image.
Vertical Spaces (u_vspace) Number of pixels of white space to be inserted above and below the image.
Width (u_width) Width, in pixels or percentage, that overrides the original width of the image, causing the image to be scaled to the new width.
Height (u_height) Height, in pixels or percentage, that overrides the original height of the image, causing the image to be scaled to the new height.
Exclude Do not load the field into the server page; use only if the field does not need to be sent to the browser.

Description

When the field definition is copied to the layout, the XHTML source code similar to the following:

<x-subst name="IMAGE.MY_ENTITY.MY_MODEL" type="image">
 <a href="" target="_blank">
    <img name="IMAGE.MY_ENTITY.MY_MODEL"
    src="file:///D:/Uniface/project/p1.jpg" lowsrc=""
    alt="" border="" height="" hspace="" vspace="" width="">
 </a>
</x-subst>

Related Topics