Skip to content

Commit 73bf610

Browse files
committed
Add sample code
1 parent 8e80b8e commit 73bf610

File tree

1 file changed

+51
-2
lines changed

1 file changed

+51
-2
lines changed

docs/index.html

+51-2
Original file line numberDiff line numberDiff line change
@@ -689,12 +689,14 @@ <h5>Inline, radio & checkbox block</h5>
689689
<div class="row">
690690
<div class="col lg-6 md-6 sm-12">
691691
<h5>Textarea default</h5>
692+
<pre data-type="html"><code class="html"><textarea rows="3"></textarea></code></pre>
692693
<div class="form-group">
693694
<textarea rows="3"></textarea>
694695
</div>
695696
</div>
696697
<div class="col lg-6 md-6 sm-12">
697698
<h5>Textarea noresize</h5>
699+
<pre data-type="html"><code class="html"><textarea class="no-resize" rows="3"></textarea></code></pre>
698700
<div class="form-group">
699701
<textarea class="no-resize" rows="3"></textarea>
700702
</div>
@@ -703,11 +705,19 @@ <h5>Textarea noresize</h5>
703705
<div class="row">
704706
<div class="col lg-6 md-6 sm-12">
705707
<h5>File default</h5>
708+
<pre data-type="html"><code class="html"><div class="form-group">
709+
<label for="InputFile">File browser</label>
710+
<input type="file" id="InputFile">
711+
</div></code></pre>
706712
<div class="form-group">
707713
<label for="InputFile">File browser</label>
708714
<input type="file" id="InputFile">
709715
</div>
710716
<h5>File, data-prefix (chrome)</h5>
717+
<pre data-type="html"><code class="html"><div class="form-group">
718+
<label for="InputFilePrefix">File browser</label>
719+
<input type="file" id="InputFilePrefix" data-prefix="Choose file">
720+
</div></code></pre>
711721
<div class="form-group">
712722
<label for="InputFilePrefix">File browser</label>
713723
<input type="file" id="InputFilePrefix" data-prefix="Choose file">
@@ -720,6 +730,15 @@ <h5>File, data-prefix zh-tw (chrome)</h5>
720730
</div>
721731
<div class="col lg-6 md-6 sm-12">
722732
<h5>Select</h5>
733+
<pre data-type="html"><code class="html"><div class="form-group">
734+
<label>Preference</label>
735+
<select>
736+
<option>Choose...</option>
737+
<option>Angular</option>
738+
<option>React</option>
739+
<option>Vue</option>
740+
</select>
741+
</div></code></pre>
723742
<div class="form-group">
724743
<label>Preference</label>
725744
<select>
@@ -730,6 +749,9 @@ <h5>Select</h5>
730749
</select>
731750
</div>
732751
<h5>Select, disabled</h5>
752+
<pre data-type="html"><code class="html"><select class="disabled" disabled>
753+
<!-- --- -->
754+
</select></code></pre>
733755
<div class="form-group">
734756
<label>Preference</label>
735757
<select class="disabled" disabled>
@@ -740,6 +762,17 @@ <h5>Select, disabled</h5>
740762
</select>
741763
</div>
742764
<h5>Select, inline</h5>
765+
<pre data-type="html"><code class="html"><div class="form-group row">
766+
<label class="col lg-3 md-3 sm-12">Preference</label>
767+
<div class="col lg-9 md-3 sm-12">
768+
<select>
769+
<option>Choose...</option>
770+
<option>Angular</option>
771+
<option>React</option>
772+
<option>Vue</option>
773+
</select>
774+
</div>
775+
</div></code></pre>
743776
<div class="form-group row">
744777
<label class="col lg-3 md-3 sm-12">Preference</label>
745778
<div class="col lg-9 md-3 sm-12">
@@ -756,7 +789,24 @@ <h5>Select, inline</h5>
756789
<hr>
757790
<h4>Modals</h4>
758791
<div class="row">
759-
<div class="col lg-12">
792+
<pre data-type="html"><code class="html"><label class="btn btn-primary mr" for="ModalBasic">Basic</label>
793+
<input class="modal-state" id="ModalBasic" type="checkbox">
794+
795+
<div class="modal">
796+
<div class="modal-body">
797+
<label class="modal-close" for="ModalBasic">×</label>
798+
<h4 class="modal-title">Modal Title</h4>
799+
<div class="modal-text">
800+
<p>Modal Body</p>
801+
</div>
802+
<div class="float-right">
803+
<label class="btn" for="ModalBasic">Close</label>
804+
<label class="btn btn-primary" for="ModalBasic">Save</label>
805+
</div>
806+
</div>
807+
</div>
808+
</code></pre>
809+
<div class="col lg-12">
760810
<label class="btn btn-primary mr" for="ModalBasic">Basic</label>
761811
<label class="btn btn-primary" for="ModalForm">Form</label>
762812
<label class="btn btn-primary" for="ModalCloseBG">Close by background</label>
@@ -778,7 +828,6 @@ <h4 class="modal-title">Modal Title</h4>
778828
</div>
779829
</div>
780830
</div>
781-
782831
<input class="modal-state" id="ModalForm" type="checkbox">
783832
<div class="modal">
784833
<div class="modal-body">

0 commit comments

Comments
 (0)