image.comp

The image widget displays the base64 encoded string as an image.
An image upload window pops up in edit mode on mouse click inside the image frame.
On double-click a new window opens displaying the original sized image.

On this page:

Parameters

Parameter Name Description Default Value
$value The input value. Empty string.
$id HTML tag ID. Not defined.
$description The description that is displayed when mouse hovers over the widget. Empty string.
$image_style The widget style parameters. height: 100%; max-width: 400px; max-height: 100px; background-color: transparent;
$readonly The read-only flag. Empty string which equals to false.

Example

An example widget looks like this:

logo_image2.PNG

Configuration of the displayed example:
<%method logo_FIELD>\
  <& /input/image.comp, %ARGS,
    description => 'Certificato logo.',
    readonly => 'true'
  &>
</%method>

Upload window in edit mode:

logo_upload2.PNG
Topic revision: r5 - 05 Nov 2016, GuidoBrugnara
This site is powered by FoswikiCopyright (©) Leader.IT - Italy P.I. IT01434390223 Privacy policy & use of cookies