]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
rm docs references to nuked stateful button feature 17178/head
authorChris Rebert <github@rebertia.com>
Fri, 21 Aug 2015 01:47:41 +0000 (18:47 -0700)
committerChris Rebert <github@rebertia.com>
Fri, 21 Aug 2015 01:47:41 +0000 (18:47 -0700)
[skip sauce]

docs/components/buttons.md

index 893d04df24ed50868748c44b400dec0a519863b5..664c8f57be405613d131def2f52a447724fadd4a 100644 (file)
@@ -179,18 +179,3 @@ Note that pre-checked buttons require you to manually add the `.active` class to
 | Method | Description |
 | --- | --- |
 | `$().button('toggle')` |Toggles push state. Gives the button the appearance that it has been activated.  |
-| `$().button('reset')` | Resets button state—swaps text to original text. **This method is asynchronous and returns before the resetting has actually completed.** |
-| `$().button(string)` | Swaps text to any data defined text state. |
-
-### Custom state example
-
-{% highlight html %}
-<button type="button" id="myStateButton" data-complete-text="finished!" class="btn btn-primary" autocomplete="off">
-  ...
-</button>
-<script>
-  $('#myStateButton').on('click', function () {
-    $(this).button('complete') // button text will be "finished!"
-  })
-</script>
-{% endhighlight %}