component.tables-classic

tables-classic

Classic Tables

Minimal Table

No. Column Heading
1 Lorem ipsum dolor
2 Lorem ipsum dolor
3 Lorem ipsum dolor

Bordered Table

No. Column Heading
1 Lorem ipsum dolor
2 Lorem ipsum dolor
3 Lorem ipsum dolor

Striped Table

No. Column Heading
1 Lorem ipsum dolor
2 Lorem ipsum dolor
3 Lorem ipsum dolor

Primary Table

No. Column Heading
1 Lorem ipsum dolor
2 Lorem ipsum dolor
3 Lorem ipsum dolor

Condensed Table

No. Column Heading
1 Lorem ipsum dolor
2 Lorem ipsum dolor
3 Lorem ipsum dolor
<h3 class="innerTB">Classic Tables</h3>

<!-- Widget -->
<div class="widget">
	
	<!-- Widget heading -->
	<div class="widget-head">
		<h4 class="heading">Minimal Table</h4>
	</div>
	<!-- // Widget heading END -->
	
	<div class="widget-body innerAll inner-2x">
	
		<!-- Table -->
		<table class="table">
		
			<!-- Table heading -->
			<thead>
				<tr>
					<th class="center">No.</th>
					<th>Column Heading</th>
				</tr>
			</thead>
			<!-- // Table heading END -->
			
			<!-- Table body -->
			<tbody>
				
				<!-- Table row -->
				<tr>
					<td class="center">1</td>
					<td>Lorem ipsum dolor</td>
				</tr>
				<!-- // Table row END -->
				
				<!-- Table row -->
				<tr>
					<td class="center">2</td>
					<td>Lorem ipsum dolor</td>
				</tr>
				<!-- // Table row END -->
				
				<!-- Table row -->
				<tr>
					<td class="center">3</td>
					<td>Lorem ipsum dolor</td>
				</tr>
				<!-- // Table row END -->
				
			</tbody>
			<!-- // Table body END -->
			
		</table>
		<!-- // Table END -->
		
	</div>
</div>
<!-- // Widget END -->

<!-- Widget -->
<div class="widget">
	
	<!-- Widget heading -->
	<div class="widget-head">
		<h4 class="heading">Bordered Table</h4>
	</div>
	<!-- // Widget heading END -->
	
	<div class="widget-body innerAll inner-2x">
	
		<!-- Table -->
		<table class="table table-bordered table-white">
			
			<!-- Table heading -->
			<thead>
				<tr>
					<th class="center">No.</th>
					<th>Column Heading</th>
				</tr>
			</thead>
			<!-- // Table heading END -->
			
			<!-- Table body -->
			<tbody>
			
				<!-- Table row -->
				<tr>
					<td class="center">1</td>
					<td>Lorem ipsum dolor</td>
				</tr>
				<!-- // Table row END -->
				
				<!-- Table row -->
				<tr>
					<td class="center">2</td>
					<td>Lorem ipsum dolor</td>
				</tr>
				<!-- // Table row END -->
				
				<!-- Table row -->
				<tr>
					<td class="center">3</td>
					<td>Lorem ipsum dolor</td>
				</tr>
				<!-- // Table row END -->
				
			</tbody>
			<!-- // Table body END -->
			
		</table>
		<!-- // Table END -->
		
	</div>
</div>
<!-- // Widget END -->

<!-- Widget -->
<div class="widget">
	
	<!-- Widget heading -->
	<div class="widget-head">
		<h4 class="heading">Striped Table</h4>
	</div>
	<!-- // Widget heading END -->
	
	<div class="widget-body innerAll inner-2x">
	
		<!-- Table -->
		<table class="table table-bordered table-striped table-white">
			
			<!-- Table heading -->
			<thead>
				<tr>
					<th class="center">No.</th>
					<th>Column Heading</th>
				</tr>
			</thead>
			<!-- // Table heading END -->
			
			<!-- Table body -->
			<tbody>
				
				<!-- Table row -->
				<tr>
					<td class="center">1</td>
					<td>Lorem ipsum dolor</td>
				</tr>
				<!-- // Table row END -->
				
				<!-- Table row -->
				<tr>
					<td class="center">2</td>
					<td>Lorem ipsum dolor</td>
				</tr>
				<!-- // Table row END -->
				
				<!-- Table row -->
				<tr>
					<td class="center">3</td>
					<td>Lorem ipsum dolor</td>
				</tr>
				<!-- // Table row END -->
				
			</tbody>
			<!-- // Table body END -->
			
		</table>
		<!-- // Table END -->
		
	</div>
</div>
<!-- // Widget END -->

<!-- Widget -->
<div class="widget">
	
	<!-- Widget heading -->
	<div class="widget-head">
		<h4 class="heading">Primary Table</h4>
	</div>
	<!-- // Widget heading END -->
	
	<div class="widget-body innerAll inner-2x">
	
		<!-- Table -->
		<table class="table table-bordered table-primary">
			
			<!-- Table heading -->
			<thead>
				<tr>
					<th class="center">No.</th>
					<th>Column Heading</th>
				</tr>
			</thead>
			<!-- // Table heading END -->
			
			<!-- Table body -->
			<tbody>
				
				<!-- Table row -->
				<tr>
					<td class="center">1</td>
					<td>Lorem ipsum dolor</td>
				</tr>
				<!-- // Table row END -->
				
				<!-- Table row -->
				<tr>
					<td class="center">2</td>
					<td>Lorem ipsum dolor</td>
				</tr>
				<!-- // Table row END -->
				
				<!-- Table row -->
				<tr>
					<td class="center">3</td>
					<td>Lorem ipsum dolor</td>
				</tr>
				<!-- // Table row END -->
				
			</tbody>
			<!-- // Table body END -->
			
		</table>
		<!-- // Table END -->
		
	</div>
</div>
<!-- // Widget END -->

<!-- Widget -->
<div class="widget">
	
	<!-- Widget heading -->
	<div class="widget-head">
		<h4 class="heading">Condensed Table</h4>
	</div>
	<!-- // Widget heading END -->
	
	<div class="widget-body innerAll inner-2x">
	
		<!-- Table -->
		<table class="table table-bordered table-condensed">
			
			<!-- Table heading -->
			<thead>
				<tr>
					<th class="center">No.</th>
					<th>Column Heading</th>
				</tr>
			</thead>
			<!-- // Table heading END -->
			
			<!-- Table body -->
			<tbody>
			
				<!-- Table row -->
				<tr>
					<td class="center">1</td>
					<td>Lorem ipsum dolor</td>
				</tr>
				<!-- // Table row END -->
				
				<!-- Table row -->
				<tr>
					<td class="center">2</td>
					<td>Lorem ipsum dolor</td>
				</tr>
				<!-- // Table row END -->
				
				<!-- Table row -->
				<tr>
					<td class="center">3</td>
					<td>Lorem ipsum dolor</td>
				</tr>
				<!-- // Table row END -->
				
			</tbody>
			<!-- // Table body END -->
			
		</table>
		<!-- // Table END -->
		
	</div>
</div>
<!-- // Widget END -->

Code

@import "assets/components/common/tables/classic/assets/less/tables.less";
@import "http://localhost/shared/components/library/jquery-ui/css/jquery-ui.min.css";

Usage

  1. Create a new LESS file (eg. styles.less)
  2. Copy & paste the above imports in the LESS file.
  3. Place the file in your project's document root.
  4. Load the LESS file into the <head> section of your HTML document, before any JavaScript files:

    <link type="stylesheet/less" href="styles.less" />

    NOTE  All the styles from the CORE package also need to be imported in this file, before the component imports.

  5. If you'd like to include other components on the same page, don't create multiple LESS files, but add all the imports in one file. You can create a LESS file for each page with just the resources used for that specific page, or you could create and use a single LESS file for the entire project.
  6. In production, compile the LESS file and use the resulting minified CSS file in the HTML document.

Scripts

HEAD You should include the following scripts in the head section of the document, right before the closing </head> tag, after styles.

<script src="assets/components/library/jquery-ui/js/jquery-ui.min.js?v=v1.0.2&sv=v0.0.1"></script>
<script src="assets/components/plugins/jquery-ui-touch-punch/jquery.ui.touch-punch.min.js?v=v1.0.2&sv=v0.0.1"></script>

Scripts

BODY You should include the following scripts at the end of the HTML document, right before the closing </body> tag.

<script src="assets/components/common/tables/classic/assets/js/tables-classic.init.js?v=v1.0.2&sv=v0.0.1"></script>