Summary Files Commits Branches @commit @diff @stats
path: root / docs / elements.html
diff options
context:
space:
mode:
Commit96bfdfd874a26f0d457c128705f8fd00afa59e51 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2018-06-18 17:48:05 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2018-06-18 17:48:05 +0800
Files95963c9e1ccba13c83f11f6c17f4340b77d642ad /docs/elements.html
Spectre-Dark-Gruvbox-96bfdfd874a26f0d457c128705f8fd00afa59e51.tar
Spectre-Dark-Gruvbox-96bfdfd874a26f0d457c128705f8fd00afa59e51.tar.gz
Spectre-Dark-Gruvbox-96bfdfd874a26f0d457c128705f8fd00afa59e51.zip
Parentf73de69a8e0f99739434ee949d3fb5eec56683d3 (diff)
Improve docs code examples
1 files changed, 14 insertions, 1 deletions
-rw-r--r--docs/elements.html15
diff --git a/docs/elements.html b/docs/elements.html
index b07807c..2c7086f 100644
--- a/docs/elements.html
+++ b/docs/elements.html
@@ -682,7 +682,20 @@
<span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
- <p>You can use <code>:indeterminate</code> pseudo class for indeterminate state of checkboxes.</p>
+ <div class="docs-demo columns">
+ <div class="column">
+ <div class="form-group">
+ <label class="form-checkbox">
+ <input id="docs-demo-checkbox" type="checkbox"><i class="form-icon"></i> Select all
+ </label>
+ </div>
+ </div>
+ </div>
+ <script>
+ document.getElementById("docs-demo-checkbox").indeterminate = true;
+
+ </script>
+ <p>You can change checkbox to indeterminate state by setting the <code>indeterminate</code> property of input checkboxes to <code>true</code>.</p>
<h4 class="s-subtitle" id="forms-horizontal">Horizontal forms<a class="anchor" href="#forms-horizontal" aria-hidden="true">#</a></h4>
<p>If you want to have a horizontal form, add the <code>form-horizontal</code> class to the &lt;form&gt; container.
And add the <code>col-<1-12></code> and <code>col-xs/sm/lg/xl-<1-12></code> class to the child elements for responsive form row layout.