summaryrefslogtreecommitdiffstats
path: root/documentation/layout/layout-formlayout.asciidoc
diff options
context:
space:
mode:
authorMarko Gronroos <magi@vaadin.com>2016-07-01 11:48:12 +0300
committerMarko Gronroos <magi@vaadin.com>2016-07-13 19:38:45 +0300
commit261cc183e8309c826afd7bf3dc85fa63d02b17f1 (patch)
treeaba367b694de9334627a2c32d9969a39728f4df0 /documentation/layout/layout-formlayout.asciidoc
parent0abb0f38866995c92db321fb17fd9af24d74e928 (diff)
downloadvaadin-framework-261cc183e8309c826afd7bf3dc85fa63d02b17f1.tar.gz
vaadin-framework-261cc183e8309c826afd7bf3dc85fa63d02b17f1.zip
Scaled images and fixes to Grid, FormLayout, and Slider docs. #19835
Change-Id: I6007358e1240c458d3b9148d4def6729d4c42aac Updated a Slider diagram. #19835 Change-Id: I4d0a75b5f85bcce37e8579b7544672c2433f50f1
Diffstat (limited to 'documentation/layout/layout-formlayout.asciidoc')
-rw-r--r--documentation/layout/layout-formlayout.asciidoc14
1 files changed, 4 insertions, 10 deletions
diff --git a/documentation/layout/layout-formlayout.asciidoc b/documentation/layout/layout-formlayout.asciidoc
index b43329e456..487d0ac9d0 100644
--- a/documentation/layout/layout-formlayout.asciidoc
+++ b/documentation/layout/layout-formlayout.asciidoc
@@ -18,8 +18,7 @@ shown for each field. The field captions can have an icon in addition to the
text. [classname]#FormLayout# is an ordered layout and much like
[classname]#VerticalLayout#. For description of margins, spacing, and other
features in ordered layouts, see
-<<dummy/../../../framework/layout/layout-orderedlayout#layout.orderedlayout,"VerticalLayout
-and HorizontalLayout">>.
+<<dummy/../../../framework/layout/layout-orderedlayout#layout.orderedlayout, "VerticalLayout and HorizontalLayout">>.
The following example shows typical use of [classname]#FormLayout# in a form:
@@ -32,11 +31,11 @@ tf1.setIcon(FontAwesome.USER);
tf1.setRequired(true);
tf1.addValidator(new NullValidator("Must be given", false));
form.addComponent(tf1);
-
+
TextField tf2 = new TextField("Street address");
tf2.setIcon(FontAwesome.ROAD);
form.addComponent(tf2);
-
+
TextField tf3 = new TextField("Postal code");
tf3.setIcon(FontAwesome.ENVELOPE);
tf3.addValidator(new IntegerRangeValidator("Doh!", 1, 99999));
@@ -91,9 +90,4 @@ shown as a part of the caption column.
For information on setting margins and spacing, see also
<<dummy/../../../framework/layout/layout-orderedlayout#layout.orderedlayout.spacing,"Spacing
in Ordered Layouts">> and
-<<dummy/../../../framework/layout/layout-settings#layout.settings.margins,"Layout
-Margins">>.
-
-
-
-
+<<dummy/../../../framework/layout/layout-settings#layout.settings.margins, "Layout Margins">>.