Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <otto@github.com>2014-03-05 03:16:38 +0400
committerMark Otto <otto@github.com>2014-03-05 03:16:38 +0400
commite418377b119cbe8604370adcc17ab3de76b2a415 (patch)
tree942fd20f3085f0891dbe8b27bf3b923c7806ee26 /docs/css.html
parenta0ac99efbf201f03106f392bce7045d8563064d9 (diff)
Fixes #12697: Document readonly inputs
Diffstat (limited to 'docs/css.html')
-rw-r--r--docs/css.html14
1 files changed, 13 insertions, 1 deletions
diff --git a/docs/css.html b/docs/css.html
index 614b740502..9af1eeffc4 100644
--- a/docs/css.html
+++ b/docs/css.html
@@ -1878,7 +1878,7 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline.
<h2 id="forms-control-disabled">Disabled inputs</h2>
- <p>Add the <code>disabled</code> attribute on an input to prevent user input and trigger a slightly different look.</p>
+ <p>Add the <code>disabled</code> boolean attribute on an input to prevent user input and trigger a slightly different look.</p>
<div class="bs-example">
<form role="form">
<input class="form-control" id="disabledInput" type="text" placeholder="Disabled input here…" disabled>
@@ -1947,6 +1947,18 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline.
{% endhighlight %}
+ <h2 id="forms-control-readonly">Readonly inputs</h2>
+ <p>Add the <code>readonly</code> boolean attribute on an input to prevent user input and style the input as disabled.</p>
+ <div class="bs-example">
+ <form role="form">
+ <input class="form-control" type="text" placeholder="Readonly input here…" readonly>
+ </form>
+ </div><!-- /.bs-example -->
+{% highlight html %}
+<input class="form-control" type="text" placeholder="Readonly input here…" readonly>
+{% endhighlight %}
+
+
<h2 id="forms-control-validation">Validation states</h2>
<p>Bootstrap includes validation styles for error, warning, and success states on form controls. To use, add <code>.has-warning</code>, <code>.has-error</code>, or <code>.has-success</code> to the parent element. Any <code>.control-label</code>, <code>.form-control</code>, and <code>.help-block</code> within that element will receive the validation styles.</p>