You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: data/example.alfi
+18-9
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,25 @@
2
2
= window label "Example window"
3
3
4
4
# A header and some text
5
-
+ header label "What a wonderful world"
6
-
+ text label "This is some text."
5
+
+ header label "This is the title that doesn't say anything right now!"
6
+
+ text label "This is some text. It is just here so I can see if word wrapping works the way it should or if there are some troubles with it. Word wrapping was actually one of the more trickier things to solve."
7
7
+ subheader label "This is a subheader"
8
8
+ text label "Below is a form."
9
9
10
10
# Basic form elements
11
11
+ field id field1 type regular label "Username"
12
12
+ field id field2 type password label "Password"
13
-
+ select id select1 range 1 1 label "Select"
14
-
+ choice in select1 id choice1 label "Option 1"
15
-
+ choice in select1 id choice2 label "Option 2"
16
-
+ choice in select1 id choice3 label "Option 3"
17
-
+ button id submit label "Submit"
13
+
+ field id field3 type regular label "Phone" data "+46"
14
+
+ select id select1 range 1 1 label "Make a choice"
15
+
+ choice in select1 label "Choice 1-1"
16
+
+ choice in select1 label "Choice 1-2"
17
+
+ choice in select1 label "Choice 1-3"
18
+
+ select id select2 range 1 1 label "Country" data "Sweden"
19
+
+ choice in select2 label "Denmark"
20
+
+ choice in select2 label "Finland"
21
+
+ choice in select2 label "Norway"
22
+
+ choice in select2 label "Sweden"
23
+
+ button id submit label "SEND"
18
24
19
25
# Two nested lists
20
26
+ list id list1
@@ -24,6 +30,9 @@
24
30
+ text in list2 label "Item 2-1"
25
31
+ text in list2 label "Item 2-2"
26
32
33
+
# An anchor link to another site
34
+
+ anchor label "This is a link" link "http://www.blunder.se/" "text/alfi"
35
+
27
36
# A row of images
28
37
+ hstack id gallery halign left valign top
29
38
+ image in gallery link "data/image6.jpg" "image/jpeg"
@@ -47,14 +56,14 @@
47
56
+ table id table1 grid 24 0 0 0 6 0
48
57
+ text in table1 label "Cell 0-0"
49
58
+ text in table1 label "Cell 0-1"
50
-
+ text in table1 label "Cell 0-2"
59
+
+ text in table1 label "Cell 0-2 containing a lot of extra text"
51
60
+ text in table1 label "Cell 0-3"
52
61
+ text in table1 label "Cell 1-0"
53
62
+ text in table1 label "Cell 1-1"
54
63
+ image in table1 link "data/image6.jpg" "image/jpeg"
0 commit comments