Skip to content
Matthias Görges edited this page Mar 11, 2015 · 1 revision

The uiform list element displays a list of strings

Parameter Default Description
id #f Variable to store selected list index in
location 'db List variable storage location
entries '() List of string entries

Example

Example 1: A complete page definition including a dynamically created list of strings.

(admin-edit-1
  "Edit Registrations"
  ("Back" admin-menu)
  #f
  (spacer)
  (label text "Previous registrations:")
  (spacer)
  ,(lambda ()
  (let* ((db (uiget 'database))
         (register (table-ref db 'register #f))
         (namelist (map car register)))
    (if (= (length register) 0)
    '(label text "None")
    `(list id editname entries ,namelist) )
  ))
  (spacer)
)

)

Clone this wiki locally