-
Notifications
You must be signed in to change notification settings - Fork 86
uiform button
Matthias Görges edited this page Jul 14, 2016
·
4 revisions
The uiform button element creates a button.
Parameter | Default | Description |
---|---|---|
text | "" | Checkbox label string |
size | normal | String size (normal, small, big) |
color | White | Font color (from modules/ln_core/color.scm) |
action | #f | Function to be called if button is pressed |
rounded | #f | If true, the drawn button rectangle will have rounded corners |
Example 1: A complete page definition with a few buttons, shortened from LNhealth's apps/WidgetDemo
(ex_buttons
"Buttons"
("Prev" main)
("Next" ex_textentry)
(spacer)
(button text "This is a normal button")
(spacer)
(button color ,Black size big text "Custom Button")
)
Example 2: A button with a callback, which sets a UI variable and navigates to a different page.
(button text "Medications" action ,(lambda ()
(uiset 'medsfromwhere 0)
'medications-entry))
-
- accelerometer
- alist
- audio
- audioaux
- base64
- btle-scan
- camera
- cdb
- cgi
- config
- csv
- curl
- digest
- dmtx
- download
- eventloop
- fcgi
- fft
- generalized-arrays
- gps
- graph
- gyro
- hidapi
- hpdf
- html
- httpsclient
- hybridapp
- json
- lmdb
- ln_core
- ln_glcore
- ln_glgui
- ln_store
- localization
- localization_gui
- localnotification
- magnetometer
- mdns
- mqtt
- mqtt-store
- multitouch
- oauth
- orientation
- p256ecdsa
- png
- portaudio
- pregexp
- pressure
- prime
- pushnotification
- redcap
- rsa
- rtaudio
- rupi
- rotation
- sanestring
- scheduler
- serial
- sets
- settings
- simplexnoise
- sqlite
- ssax
- syntax-case
- timestamp
- ttf
- uiform
- url
- uuid
- vibrate
- videoplayer
- watchdog
- website
- xml
- zip