Suppose you have view information (not edit information) when using twitter bootstrap. What's the best way to display the data?
This was actually brought up as an issue: https://github.com/twitter/bootstrap/issues/4094.
The customized form can be created by using Bootstrap 4 like checkbox, radio buttons, file inputs and more. Bootstrap simplifies the process of alignment and styling of web pages in many forms like label, input, field, textarea, button, checkbox, etc. Custom Checkbox: The . custom-control and .
Give textual form controls like <input> s and <textarea> s an upgrade with custom styles, sizing, focus states, and more.
BS3 has a concept of a static field. You can mix and match static fields and input fields on the same form. Or use all static fields for a read only form.
http://getbootstrap.com/css/#forms-controls-static
Instead of a normal input
element, you can use a p
tag with this special bootstrap class:
<p class="form-control-static">[email protected]</p>
You can use the form-control-plaintext
class on an input
tag.
See https://getbootstrap.com/docs/4.0/components/forms/#readonly-plain-text
form-control-plaintext
I went along with MDO's answer on github.
Here's the example presented above that shows how to do this, using codepen. You can experiment with the styling. Pretty cool tool.
This also shows how to link to the bootstrap stylesheet in codepen.
http://cdpn.io/gFecv
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With