Tablify - Fancy Tables

Description

Tablify is a JQuery plugin built to extremely simplify beatifying of standard HTML tables.

Features

Easy Integration. Takes no exaustive coding of your part. A single line of JavaScript is more than enough. Or even easier - copy an example from this website and paste.


Multiple Browser Support. Tablify has been tested and is working fine in Mozilla Firefox, Internet Explorer 6.0, Opera, Safari and Netscape Navigator.

Small Size. With the size of 8kb Tablify is a must have for every JQuery developer.

Highly Configurable. Either starting writing new style from scratch, or using an existing style every feature of Tablify can be easily configured.

Getting started

To use the Tablify plugin, include the jQuery library and the Tablify plugin inside the tag of your HTML document. If you want to use the extension include it also in the head tag of your HTML document.

    <script src="jquery.min.js" type="text/javascript">
    <script src="jquery.tablify.js" type="text/javascript">
    <script src="jquery.tablify.ext.js" type="text/javascript">

Tablify works on standard HTML tables.

<table id="result" width="300" cellspacing="0">
    <tr><th width="200">Employee</th><th>Sallary</th><th>Bonus</th></tr>
    <tr><td>Claris F. Sanches</td><td>$1500</td><td>$50</td></tr>
    <tr><td>Marry A. Popins</td><td>$2500</td><td>$150</td></tr>
    <tr><td>Mona A. Liza</td><td>$1800</td><td>$20</td></tr>
    <tr><td>Sienna D. Ferguson</td><td>$1300</td><td>$150</td></tr>
</table>

Start by telling Tablify to fancy your table when the document is loaded:

$(document).ready(function() 
    { 
        $("#result").tablify(0); 
    } 
);

Result:

EmployeeSallaryBonus
Claris F. Sanches$1500$50
Marry A. Popins$2500$150
Mona A. Liza$1800$20
Sienna D. Ferguson$1300$150

Configuration

Tablify allows full customization. Select a style, that matches your desired table look and feel. Provide the additional options to customize it.

$(document).ready(function(){
    $("#result1").tablify(0,
         {
            tableBorderCollapse:"collapse",
            tableBorder:"1px solid gray",
            tableBorderBottom:"4px solid gray",
            headerPadding:"10px",
            rowsBorderTop:"1px solid gray",
            rowsBorderLeft:"1px dashed gray",
            rowsPadding:"10px",
            hover:"yellow",
            zebra:true,
            zebraBackground:"cornsilk"
         }
    ); 
});

Result:

EmployeeSallaryBonus
Claris F. Sanches$1500$50
Marry A. Popins$2500$150
Mona A. Liza$1800$20
Sienna D. Ferguson$1300$150

Available Styles

Tablify comes with 3 built-in styles - 0 (default), 1 and 2. See the demo for preview.

Tablify Extension

Tablify comes with an extension which includes 5 more styles - "box", "clear", "greenlife", "minimalist", "newspaper", "seaglass". See the demo for preview.

Working with Extension

Start by telling Tablify to fancy your table with the desired style when the document is loaded:

$(document).ready(function() 
    { 
        $("#result2").tablify("newspaper"); 
    } 
);

Result:

EmployeeSallaryBonus
Claris F. Sanches$1500$50
Marry A. Popins$2500$150
Mona A. Liza$1800$20
Sienna D. Ferguson$1300$150

Configuration Options

OptionComment
tableBackground Specifies the background color of the table.
tableBackgroundImageSpecifies the background image to be used for the table.
tableBorderCollapseShould the border be collapsed.
tableBorder Specifies the whole border style of the table.
tableBorderBottom Specifies the bottom border style of the table.
tableBorderLeft Specifies the left border style of the table.
tableBorderRight Specifies the right border style of the table.
tableBorderTop Specifies the top border style of the table.
headerAlign Specifies the text alignment (left,right, center) of header.
headerBackground Specifies the background color of the header.
headerBackgroundImageSpecifies the background image to be used for the header.
headerBorder Specifies the whole border style of the header cells.
headerBorderBottomSpecifies the bottom border style of the header cells.
headerBorderLeft Specifies the left border style of the header cells.
headerBorderRight Specifies the right border style of the header cells.
headerBorderTop Specifies the top border style of the header cells.
headerFont Specifies the font family of the text in the header.
headerFontColor Specifies the font color of the text in the header.
headerFontSize Specifies the font size of the text in the header.
headerPadding Specifies the padding of the header cells.
rowsAlign Specifies the text alignment (left,right, center) of rows.
rowsBackground Specifies the background color of the rows.
rowsBackgroundImageSpecifies the background image to be used for the rows.
rowsBorder Specifies the whole border style of the rows.
rowsBorderBottom Specifies the bottom border style of the rows.
rowsBorderLeft Specifies the left border style of the rows.
rowsBorderRight Specifies the right border style of the rows.
rowsBorderTop Specifies the top border style of the rows.
rowsFont Specifies the font family of the text in the rows.
rowsFontColor Specifies the font color of the text in the rows.
rowsFontSize Specifies the font size of the text in the rows.
rowsPadding Specifies the padding of the rows cells.
hover Specifies the mouseover color of the rows.
zebra Specifies, whether a zebra efect should be added for readability.
zebraBackground Specifies the zebra background color.

Demo

Ext. Seaglass with Header Ext. Seaglass without Header
EmployeeSallaryBonus
Claris F. Sanches$1500$50
Marry A. Popins$2500$150
Mona A. Liza$1800$20
Sienna D. Ferguson$1300$150
Claris F. Sanches$1500$50
Marry A. Popins$2500$150
Mona A. Liza$1800$20
Sienna D. Ferguson$1300$150
Ext. GreenLife with Header Ext. GreenLife without Header
EMPLOYEESALLARYBONUS
Claris F. Sanches$1500$50
Marry A. Popins$2500$150
Mona A. Liza$1800$20
Sienna D. Ferguson$1300$150
Claris F. Sanches$1500$50
Marry A. Popins$2500$150
Mona A. Liza$1800$20
Sienna D. Ferguson$1300$150
Ext. Newspaper with Header Ext. Newspaper without Header
EmployeeSallaryBonus
Claris F. Sanches$1500$50
Marry A. Popins$2500$150
Mona A. Liza$1800$20
Sienna D. Ferguson$1300$150
Claris F. Sanches$1500$50
Marry A. Popins$2500$150
Mona A. Liza$1800$20
Sienna D. Ferguson$1300$150
Ext. Box with Header Ext. Box without Header
EmployeeSallaryBonus
Claris F. Sanches$1500$50
Marry A. Popins$2500$150
Mona A. Liza$1800$20
Sienna D. Ferguson$1300$150
Claris F. Sanches$1500$50
Marry A. Popins$2500$150
Mona A. Liza$1800$20
Sienna D. Ferguson$1300$150
Ext. Clear with Header Ext. Clear without Header
EmployeeSallaryBonus
Claris F. Sanches$1500$50
Marry A. Popins$2500$150
Mona A. Liza$1800$20
Sienna D. Ferguson$1300$150
Claris F. Sanches$1500$50
Marry A. Popins$2500$150
Mona A. Liza$1800$20
Sienna D. Ferguson$1300$150
Ext. Minimalist with Header Ext. Minimalist without Header
EmployeeSallaryBonus
Claris F. Sanches$1500$50
Marry A. Popins$2500$150
Mona A. Liza$1800$20
Sienna D. Ferguson$1300$150
Claris F. Sanches$1500$50
Marry A. Popins$2500$150
Mona A. Liza$1800$20
Sienna D. Ferguson$1300$150
Default Style with Header Default Style without Header
EmployeeSallaryBonus
Claris F. Sanches$1500$50
Marry A. Popins$2500$150
Mona A. Liza$1800$20
Sienna D. Ferguson$1300$150
Claris F. Sanches$1500$50
Marry A. Popins$2500$150
Mona A. Liza$1800$20
Sienna D. Ferguson$1300$150
Style 1 with Header Style 1 without Header
EmployeeSallaryBonus
Claris F. Sanches$1500$50
Marry A. Popins$2500$150
Mona A. Liza$1800$20
Sienna D. Ferguson$1300$150
Claris F. Sanches$1500$50
Marry A. Popins$2500$150
Mona A. Liza$1800$20
Sienna D. Ferguson$1300$150
Style 2 with Header Style 2 without Header
EmployeeSallaryBonus
Claris F. Sanches$1500$50
Marry A. Popins$2500$150
Mona A. Liza$1800$20
Sienna D. Ferguson$1300$150
Claris F. Sanches$1500$50
Marry A. Popins$2500$150
Mona A. Liza$1800$20
Sienna D. Ferguson$1300$150

License

Tablify version 1.0 (30.03.2009)
Copyright(c)2009 Remiya Solutions All Rights Reserved
Website: http://remiya.com

This script may be used for both free and commercial purposes only if the
following conditions are met:

 1. A link back to the author's website is provided on the website, where
    the script is being used.
	
 2. You are hereby licensed to make as many copies of this script as you
    need in order to distribute your own work (including for commercial use).
	You are specifically prohibited from charging, or requesting donations,
	for any such copies without prior written permission.
	
 3. You ARE NOT allowed to distribute for download the script via electronic
    means (Internet, e-mail, etc). This means that this software is to be
	available to download from the official website (http://remiya.com) ONLY.
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Download

I have read and fully understand the license agreement.