Skip to content
Matthias Görges edited this page Jul 14, 2016 · 5 revisions

The uiform image element displays an image.

Parameter Default Description
file #f PNG image filename
align center Text alignment (center, left, right)

Example

Example 1: A complete page definition showing the LambdaNative_logo.png image, located next to the main.sx in the sandbox, from LNhealth's apps/WidgetDemo

(ex_images
  "Images"
  ("Prev" ex_dropdowns)
  ("Next" ex_progress)
  (spacer)
  (image file "LambdaNative_logo.png") 
  (spacer)
)

As Title

An image can also be used as the title of a page instead of text. Specify an image file with no quotation marks instead of a string. Below is an example of modifying the above page to display a header image instead of text.

(ex_images
  header.png
  ("Prev" ex_dropdowns)
  ("Next" ex_progress)
  (spacer)
  (image file "LambdaNative_logo.png") 
  (spacer)
)
Clone this wiki locally