projects
/
dragonfly.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Install a moduli(5) manual page.
[dragonfly.git]
/
contrib
/
bsdinstaller-1.1.6
/
src
/
backend
/
lua
/
scripts
/
test
/
dfui.lua
1
-- $Id: dfui.lua,v 1.1 2005/02/08 21:16:17 cpressey Exp $
2
3
require "app"
4
require "dfui"
5
6
App.start({
7
name = "Test application",
8
logfile = "testapp.log",
9
ui = DFUI.new{
10
transport = "tcp",
11
rendezvous = "9999"
12
}
13
})
14
15
App.ui:present{
16
id = "typical_form",
17
name = "Typical Form",
18
short_desc = "This is a typical form.",
19
fields = {
20
{
21
id = "name",
22
name = "Name"
23
},
24
{
25
id = "type",
26
name = "Type",
27
options = {
28
"First", "Second", "Third"
29
}
30
}
31
},
32
datasets = {
33
{
34
name = "Charles",
35
type = "First"
36
}
37
}
38
actions = {
39
{
40
id = "ok", name = "OK"
41
}
42
}
43
}
44
45
App.stop()