From 97127ed72966d29d51347e8d978825d386fc802d Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Tue, 19 Jun 2018 07:26:32 +0800 Subject: Add inline forms --- docs/elements.html | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'docs/elements.html') diff --git a/docs/elements.html b/docs/elements.html index 8d39557..babb472 100644 --- a/docs/elements.html +++ b/docs/elements.html @@ -696,6 +696,48 @@

You can change checkbox to indeterminate state by setting the indeterminate property of input checkboxes to true.

+

Inline forms

+
+
+
+
+ + +
+
+ + +
+
+
+
+

You can add the form-inline class to the form components to make them inline in one row.

+
<div class="form-group">
+  <label class="form-radio form-inline">
+    <input type="radio" name="gender" checked=""><i class="form-icon"></i> Male
+  </label>
+  <label class="form-radio form-inline">
+    <input type="radio" name="gender"><i class="form-icon"></i> Female
+  </label>
+</div>
+
+<div class="form-group">
+  <label class="form-checkbox form-inline">
+    <input type="checkbox"><i class="form-icon"></i> Checkbox 1
+  </label>
+  <label class="form-checkbox form-inline">
+    <input type="checkbox" checked=""><i class="form-icon"></i> Checkbox 2
+  </label>
+</div>
+

Horizontal forms

If you want to have a horizontal form, add the form-horizontal class to the <form> container. And add the col-<1-12> and col-xs/sm/lg/xl-<1-12> class to the child elements for responsive form row layout. -- cgit v1.3.1-23-gd82d