615 lines
30 KiB
HTML
615 lines
30 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html>
|
|
<head>
|
|
<title>YUI Library Examples: DataTable Control (beta): Skinning Model</title>
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
<link rel="stylesheet" type="text/css" href="../../assets/yui.css" >
|
|
|
|
<style>
|
|
/*Supplemental CSS for the YUI distribution*/
|
|
#custom-doc { width: 95%; min-width: 950px; }
|
|
#pagetitle {background-image: url(../../assets/bg_hd.gif);}
|
|
#pagetitle h1 {background-image: url(../../assets/title_h_bg.gif);}
|
|
|
|
</style>
|
|
|
|
<link rel="stylesheet" type="text/css" href="../../assets/dpSyntaxHighlighter.css">
|
|
<!--Script and CSS includes for YUI dependencies on this page-->
|
|
<link rel="stylesheet" type="text/css" href="../../build/datatable/assets/skins/sam/datatable.css" />
|
|
<link rel="stylesheet" type="text/css" href="../../build/button/assets/skins/sam/button.css" />
|
|
<script type="text/javascript" src="../../build/yahoo/yahoo-min.js"></script>
|
|
<script type="text/javascript" src="../../build/dom/dom-min.js"></script>
|
|
<script type="text/javascript" src="../../build/event/event-min.js"></script>
|
|
<script type="text/javascript" src="../../build/dragdrop/dragdrop-min.js"></script>
|
|
<script type="text/javascript" src="../../build/element/element-beta-min.js"></script>
|
|
<script type="text/javascript" src="../../build/datasource/datasource-beta-min.js"></script>
|
|
<script type="text/javascript" src="../../build/datatable/datatable-beta-min.js"></script>
|
|
<script type="text/javascript" src="../../build/button/button-min.js"></script>
|
|
|
|
<!--there is no custom header content for this example-->
|
|
|
|
|
|
</head>
|
|
<body id="yahoo-com" class=" yui-skin-sam">
|
|
<div id="custom-doc" class="yui-t2">
|
|
<div id="hd">
|
|
<div id="ygunav">
|
|
<p><em>
|
|
<a href="http://developer.yahoo.com">Yahoo! Developer Network Home</a> <i> - </i>
|
|
<a href="http://help.yahoo.com/help/us/ysearch">Help</a>
|
|
</em>
|
|
</p>
|
|
<form action="http://search.yahoo.com/search"><label for="ygsp">YDN Site Search</label>
|
|
<input name="vs" type="hidden" value="developer.yahoo.com">
|
|
<input name="fr" type="hidden" value="ush-myweb">
|
|
<input id="ygsp" name="va" size="22">
|
|
<input type="submit" value="Search" class="ygbt"></form>
|
|
</div>
|
|
<div id="ygma"><a href="../../"><img src="../../assets/yui.gif" border="0" width="378" height="28"></a></div>
|
|
<div id="pagetitle"><h1>YUI Library Examples: DataTable Control (beta): Skinning Model</h1></div>
|
|
</div>
|
|
<div id="bd">
|
|
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
<div class="yui-ge">
|
|
<div class="yui-u first example">
|
|
|
|
<div class="promo">
|
|
<h1>DataTable Control (beta): Skinning Model</h1>
|
|
|
|
<div class="exampleIntro">
|
|
<p>This example demonstrates the CSS applied to an implementation of the DataTable
|
|
control that uses the "Sam Skin". You can read more about the general approach
|
|
to skinning YUI components
|
|
<a href="http://developer.yahoo.com/yui/articles/skinning/">in this in-depth article</a>. Change any or all
|
|
of the skin CSS (but not the core CSS) for a more customized look and feel.</p>
|
|
|
|
</div>
|
|
|
|
<div class="example-container module ">
|
|
<div id="example-canvas" class="bd">
|
|
|
|
|
|
<!--BEGIN SOURCE CODE FOR EXAMPLE =============================== -->
|
|
|
|
<div id="skinning"></div>
|
|
|
|
<script type="text/javascript" src="assets/js/data.js"></script>
|
|
<script type="text/javascript">
|
|
YAHOO.util.Event.addListener(window, "load", function() {
|
|
YAHOO.example.Basic = new function() {
|
|
var myColumnDefs = [
|
|
{key:"id", sortable:true, resizeable:true},
|
|
{key:"date", formatter:YAHOO.widget.DataTable.formatDate, sortable:true, resizeable:true},
|
|
{key:"quantity", formatter:YAHOO.widget.DataTable.formatNumber, sortable:true, resizeable:true},
|
|
{key:"amount", formatter:YAHOO.widget.DataTable.formatCurrency, sortable:true, resizeable:true},
|
|
{key:"title", sortable:true, resizeable:true}
|
|
];
|
|
|
|
this.myDataSource = new YAHOO.util.DataSource(YAHOO.example.Data.bookorders);
|
|
this.myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSARRAY;
|
|
this.myDataSource.responseSchema = {
|
|
fields: ["id","date","quantity","amount","title"]
|
|
};
|
|
|
|
this.myDataTable = new YAHOO.widget.DataTable("skinning", myColumnDefs, this.myDataSource);
|
|
};
|
|
});
|
|
</script>
|
|
|
|
<!--END SOURCE CODE FOR EXAMPLE =============================== -->
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<h2 class="first">Sample Code</h2>
|
|
|
|
<p>DOM Overview:</p>
|
|
|
|
<textarea name="code" class="HTML" cols="60" rows="1"><div class="yui-dt">
|
|
<div class="yui-dt-hd">
|
|
<table>
|
|
<caption>[caption]</caption>
|
|
<thead>
|
|
<tr class="yui-dt-first yui-dt-last">
|
|
<th class="yui-dt-resizeable yui-dt-sortable yui-dt-first yui-dt-hidden">
|
|
<div class="yui-dt-liner yui-dt-col-[key]">
|
|
<span class="yui-dt-label">
|
|
<a href="yui-dt0-sort0-ascending" title="Click to sort ascending" class="yui-dt-sortable">[label]</a>
|
|
</span>
|
|
<div class="yui-dt-resizer"></div>
|
|
</div>
|
|
</th>
|
|
...
|
|
<th class="yui-dt-resizeable yui-dt-sortable yui-dt-last">
|
|
<div class="yui-dt-liner yui-dt-col-[key]">
|
|
<span class="yui-dt-label">
|
|
<a href="yui-dt0-sort4-ascending" title="Click to sort ascending" class="yui-dt-sortable">[label]</a>
|
|
</span>
|
|
<div class="yui-dt-resizer"></div>
|
|
</div>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
<div class="yui-dt-bd">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
<div>
|
|
<span>[label]</span>
|
|
</div>
|
|
</th>
|
|
....
|
|
<th>
|
|
<div>
|
|
<span>[label]</span>
|
|
</div>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr class="yui-dt-even yui-dt-first yui-dt-selected">
|
|
<td class="yui-dt-first yui-dt-hidden">
|
|
<div class="yui-dt-liner yui-dt-col-[key] yui-dt-sortable yui-dt-resizeabl">
|
|
[data]
|
|
</div>
|
|
</td>
|
|
<td >
|
|
<div class="yui-dt-liner yui-dt-col-[key] yui-dt-sortable yui-dt-resizeabl">
|
|
[data]
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="yui-dt-liner yui-dt-col-[key] yui-dt-sortable yui-dt-resizeable">
|
|
[data]
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="yui-dt-liner yui-dt-col-[key] yui-dt-sortable yui-dt-resizeable">
|
|
[data]
|
|
</div>
|
|
</td>
|
|
<td class="yui-dt-last">
|
|
<div class="yui-dt-liner yui-dt-col-[key] yui-dt-sortable yui-dt-resizeable">
|
|
[data]
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
...
|
|
<tr class="yui-dt-odd yui-dt-last">
|
|
<td class="yui-dt-first yui-dt-hidden">
|
|
<div class="yui-dt-liner yui-dt-col-[key] yui-dt-sortable yui-dt-resizeable">
|
|
[data]
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="yui-dt-liner yui-dt-col-[key] yui-dt-sortable yui-dt-resizeable">
|
|
[data]
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="yui-dt-liner yui-dt-col-[key] yui-dt-sortable yui-dt-resizeable">
|
|
[data]
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="yui-dt-liner yui-dt-col-[key] yui-dt-sortable yui-dt-resizeable">
|
|
[data]
|
|
</div>
|
|
</td>
|
|
<td class="yui-dt-last">
|
|
<div class="yui-dt-liner yui-dt-col-[key] yui-dt-sortable yui-dt-resizeable">
|
|
[data]
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
<tbody>
|
|
<tr class="yui-dt-first yui-dt-last">
|
|
<td class="yui-dt-first yui-dt-last">
|
|
<div class="yui-dt-liner yui-dt-loading">
|
|
Loading data...
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</textarea>
|
|
|
|
|
|
<p>Core CSS:</p>
|
|
|
|
<textarea name="code" class="CSS" cols="60" rows="1">/* foundational CSS */
|
|
.yui-dt {
|
|
border:1px solid transparent;
|
|
}
|
|
|
|
.yui-dt-noop {
|
|
border:none;
|
|
}
|
|
|
|
.yui-dt-liner {
|
|
overflow:hidden;
|
|
}
|
|
|
|
/* a11y headers */
|
|
.yui-dt-bd thead tr, .yui-dt-bd thead th {
|
|
position:absolute;
|
|
left:-1500px;
|
|
}
|
|
|
|
/* draggable columns */
|
|
.yui-dt-draggable {
|
|
cursor: move;
|
|
}
|
|
.yui-dt-coltarget {
|
|
position: absolute;
|
|
z-index: 999;
|
|
}
|
|
|
|
/* resizeable columns */
|
|
.yui-dt-hd {
|
|
zoom:1;
|
|
}
|
|
th.yui-dt-resizeable .yui-dt-liner {
|
|
position:relative;
|
|
}
|
|
.yui-dt-resizer {
|
|
position:absolute;
|
|
right:0;
|
|
bottom:0;
|
|
height:100%;
|
|
cursor:e-resize;
|
|
cursor:col-resize;
|
|
}
|
|
.yui-dt-resizerproxy {
|
|
visibility:hidden;
|
|
position:absolute;
|
|
z-index:9000;
|
|
}
|
|
|
|
/* hidden columns */
|
|
.yui-skin-sam th.yui-dt-hidden .yui-dt-liner,
|
|
.yui-skin-sam td.yui-dt-hidden .yui-dt-liner {
|
|
margin:0;
|
|
padding:0;
|
|
overflow:hidden;
|
|
white-space:nowrap;
|
|
}
|
|
|
|
/* vertical and horizontal scrolling */
|
|
.yui-dt-scrollable .yui-dt-bd {
|
|
overflow:auto;
|
|
}
|
|
.yui-dt-scrollable .yui-dt-hd {
|
|
overflow:hidden;
|
|
position:relative; /* for ie overflow bug http://rowanw.com/bugs/overflow_relative.htm */
|
|
}
|
|
|
|
/* editing */
|
|
.yui-dt-editor {
|
|
position:absolute;z-index:9000;
|
|
}
|
|
</textarea>
|
|
|
|
<p>Skin CSS:</p>
|
|
|
|
<textarea name="code" class="CSS" cols="60" rows="1">/* basic skin styles */
|
|
.yui-skin-sam .yui-dt table {margin:0;padding:0;font-family:arial;font-size:inherit;border-collapse:collapse;border-spacing:0;}
|
|
.yui-skin-sam .yui-dt thead {border-spacing:0;} /* for safari bug */
|
|
.yui-skin-sam .yui-dt caption {padding-bottom:1em;text-align:left;}
|
|
|
|
/*outer border */
|
|
.yui-skin-sam .yui-dt-hd table {border-left:1px solid #7F7F7F;border-top:1px solid #7F7F7F;border-right:1px solid #7F7F7F;}
|
|
.yui-skin-sam .yui-dt-bd table {border-left:1px solid #7F7F7F;border-bottom:1px solid #7F7F7F;border-right:1px solid #7F7F7F;}
|
|
|
|
.yui-skin-sam .yui-dt-scrollable .yui-dt-hd table {border:0px;}
|
|
.yui-skin-sam .yui-dt-scrollable .yui-dt-bd table {border:0px;}
|
|
.yui-skin-sam .yui-dt-scrollable .yui-dt-hd {border-left:1px solid #7F7F7F;border-top:1px solid #7F7F7F;border-right:1px solid #7F7F7F;}
|
|
.yui-skin-sam .yui-dt-scrollable .yui-dt-bd {border-left:1px solid #7F7F7F;border-bottom:1px solid #7F7F7F;border-right:1px solid #7F7F7F;}
|
|
|
|
.yui-skin-sam .yui-dt th {
|
|
background:#D8D8DA url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0; /* header gradient */
|
|
}
|
|
.yui-skin-sam .yui-dt th,
|
|
.yui-skin-sam .yui-dt th a {
|
|
font-weight:normal;text-decoration:none;color:#000; /* header text */
|
|
vertical-align:bottom;
|
|
}
|
|
.yui-skin-sam .yui-dt th {
|
|
margin:0;padding:0;
|
|
border:none;
|
|
border-right:1px solid #CBCBCB;/* inner column border */
|
|
}
|
|
.yui-skin-sam .yui-dt-liner {
|
|
margin:0;padding:0;
|
|
padding:4px 10px 4px 10px; /* cell padding */
|
|
}
|
|
.yui-skin-sam .yui-dt-coltarget {
|
|
width: 5px;
|
|
background-color: red;
|
|
}
|
|
.yui-skin-sam .yui-dt td {
|
|
margin:0;padding:0;
|
|
border:none;
|
|
border-right:1px solid #CBCBCB; /* inner column border */
|
|
text-align:left;
|
|
}
|
|
.yui-skin-sam .yui-dt-list td {
|
|
border-right:none; /* disable inner column border in list mode */
|
|
}
|
|
.yui-skin-sam .yui-dt-resizer {
|
|
width:6px;
|
|
}
|
|
|
|
/* messaging */
|
|
.yui-skin-sam .yui-dt-loading {
|
|
background-color:#FFF;
|
|
}
|
|
.yui-skin-sam .yui-dt-empty {
|
|
background-color:#FFF;
|
|
}
|
|
.yui-skin-sam .yui-dt-error {
|
|
background-color:#FFF;
|
|
}
|
|
|
|
/* sortable columns */
|
|
.yui-skin-sam thead .yui-dt-sortable {
|
|
cursor:pointer;
|
|
}
|
|
.yui-skin-sam th.yui-dt-asc,
|
|
.yui-skin-sam th.yui-dt-desc {
|
|
background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -100px; /* sorted header gradient */
|
|
}
|
|
.yui-skin-sam th.yui-dt-sortable .yui-dt-label {
|
|
margin-right:10px;
|
|
}
|
|
.yui-skin-sam th.yui-dt-asc .yui-dt-liner {
|
|
background:url(dt-arrow-up.png) no-repeat right; /* sorted header gradient */
|
|
}
|
|
.yui-skin-sam th.yui-dt-desc .yui-dt-liner {
|
|
background:url(dt-arrow-dn.png) no-repeat right; /* sorted header gradient */
|
|
}
|
|
|
|
/* editing */
|
|
.yui-dt-editable {
|
|
cursor:pointer;
|
|
}
|
|
.yui-dt-editor {
|
|
text-align:left;
|
|
background-color:#F2F2F2;
|
|
border:1px solid #808080;
|
|
padding:6px;
|
|
}
|
|
.yui-dt-editor label {
|
|
padding-left:4px;padding-right:6px;
|
|
}
|
|
.yui-dt-editor .yui-dt-button {
|
|
padding-top:6px;text-align:right;
|
|
}
|
|
.yui-dt-editor .yui-dt-button button {
|
|
background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;
|
|
border:1px solid #999;
|
|
width:4em;height:1.8em;
|
|
margin-left:6px;
|
|
}
|
|
.yui-dt-editor .yui-dt-button button.yui-dt-default {
|
|
background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1400px;
|
|
background-color: #5584E0;
|
|
border:1px solid #304369;
|
|
color:#FFF
|
|
}
|
|
.yui-dt-editor .yui-dt-button button:hover {
|
|
background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1300px;
|
|
color:#000;
|
|
}
|
|
.yui-dt-editor .yui-dt-button button:active {
|
|
background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1700px;
|
|
color:#000;
|
|
}
|
|
|
|
/* striping */
|
|
.yui-skin-sam tr.yui-dt-even { background-color:#FFF; } /* white */
|
|
.yui-skin-sam tr.yui-dt-odd { background-color:#EDF5FF; } /* light blue */
|
|
.yui-skin-sam tr.yui-dt-even td.yui-dt-asc,
|
|
.yui-skin-sam tr.yui-dt-even td.yui-dt-desc { background-color:#EDF5FF; } /* light blue sorted */
|
|
.yui-skin-sam tr.yui-dt-odd td.yui-dt-asc,
|
|
.yui-skin-sam tr.yui-dt-odd td.yui-dt-desc { background-color:#DBEAFF; } /* dark blue sorted */
|
|
|
|
/* disable striping in list mode */
|
|
.yui-skin-sam .yui-dt-list tr.yui-dt-even { background-color:#FFF; } /* white */
|
|
.yui-skin-sam .yui-dt-list tr.yui-dt-odd { background-color:#FFF; } /* white */
|
|
.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-asc,
|
|
.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-desc { background-color:#EDF5FF; } /* light blue sorted */
|
|
.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-asc,
|
|
.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-desc { background-color:#EDF5FF; } /* light blue sorted */
|
|
|
|
/* highlighting */
|
|
.yui-skin-sam th.yui-dt-highlighted,
|
|
.yui-skin-sam th.yui-dt-highlighted a {
|
|
background-color:#B2D2FF; /* med blue hover */
|
|
}
|
|
.yui-skin-sam tr.yui-dt-highlighted,
|
|
.yui-skin-sam tr.yui-dt-highlighted td.yui-dt-asc,
|
|
.yui-skin-sam tr.yui-dt-highlighted td.yui-dt-desc,
|
|
.yui-skin-sam tr.yui-dt-even td.yui-dt-highlighted,
|
|
.yui-skin-sam tr.yui-dt-odd td.yui-dt-highlighted {
|
|
cursor:pointer;
|
|
background-color:#B2D2FF; /* med blue hover */
|
|
}
|
|
|
|
/* enable highlighting in list mode */
|
|
.yui-skin-sam .yui-dt-list th.yui-dt-highlighted,
|
|
.yui-skin-sam .yui-dt-list th.yui-dt-highlighted a {
|
|
background-color:#B2D2FF; /* med blue hover */
|
|
}
|
|
.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted,
|
|
.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted td.yui-dt-asc,
|
|
.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted td.yui-dt-desc,
|
|
.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-highlighted,
|
|
.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-highlighted {
|
|
cursor:pointer;
|
|
background-color:#B2D2FF; /* med blue hover */
|
|
}
|
|
|
|
/* selection */
|
|
.yui-skin-sam th.yui-dt-selected,
|
|
.yui-skin-sam th.yui-dt-selected a {
|
|
background-color:#446CD7; /* bright blue selected cell */
|
|
}
|
|
.yui-skin-sam tr.yui-dt-selected td,
|
|
.yui-skin-sam tr.yui-dt-selected td.yui-dt-asc,
|
|
.yui-skin-sam tr.yui-dt-selected td.yui-dt-desc {
|
|
background-color:#426FD9; /* bright blue selected row */
|
|
color:#FFF;
|
|
}
|
|
.yui-skin-sam tr.yui-dt-even td.yui-dt-selected,
|
|
.yui-skin-sam tr.yui-dt-odd td.yui-dt-selected {
|
|
background-color:#446CD7; /* bright blue selected cell */
|
|
color:#FFF;
|
|
}
|
|
|
|
/* enable selection in list mode */
|
|
.yui-skin-sam .yui-dt-list th.yui-dt-selected,
|
|
.yui-skin-sam .yui-dt-list th.yui-dt-selected a {
|
|
background-color:#446CD7; /* bright blue selected cell */
|
|
}
|
|
.yui-skin-sam .yui-dt-list tr.yui-dt-selected td,
|
|
.yui-skin-sam .yui-dt-list tr.yui-dt-selected td.yui-dt-asc,
|
|
.yui-skin-sam .yui-dt-list tr.yui-dt-selected td.yui-dt-desc {
|
|
background-color:#426FD9; /* bright blue selected row */
|
|
color:#FFF;
|
|
}
|
|
.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-selected,
|
|
.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-selected {
|
|
background-color:#446CD7; /* bright blue selected cell */
|
|
color:#FFF;
|
|
}
|
|
|
|
/* pagination */
|
|
.yui-skin-sam .yui-pg-container,
|
|
.yui-skin-sam .yui-dt-paginator {
|
|
display:block;margin:6px 0;white-space:nowrap;
|
|
}
|
|
.yui-skin-sam .yui-pg-first,
|
|
.yui-skin-sam .yui-pg-last,
|
|
.yui-skin-sam .yui-pg-current-page,
|
|
.yui-skin-sam .yui-dt-first,
|
|
.yui-skin-sam .yui-dt-paginator .yui-dt-last,
|
|
.yui-skin-sam .yui-dt-paginator .yui-dt-selected {
|
|
padding:2px 6px;
|
|
}
|
|
.yui-skin-sam a.yui-pg-first,
|
|
.yui-skin-sam a.yui-pg-previous,
|
|
.yui-skin-sam a.yui-pg-next,
|
|
.yui-skin-sam a.yui-pg-last,
|
|
.yui-skin-sam a.yui-pg-page,
|
|
.yui-skin-sam .yui-dt-paginator a.yui-dt-first,
|
|
.yui-skin-sam .yui-dt-paginator a.yui-dt-last {
|
|
text-decoration:none;
|
|
}
|
|
.yui-skin-sam .yui-dt-paginator .yui-dt-previous,
|
|
.yui-skin-sam .yui-dt-paginator .yui-dt-next {
|
|
display:none;
|
|
}
|
|
.yui-skin-sam a.yui-pg-page,
|
|
.yui-skin-sam a.yui-dt-page {
|
|
border:1px solid #CBCBCB;
|
|
padding:2px 6px;
|
|
text-decoration:none;
|
|
background-color:#fff
|
|
}
|
|
.yui-skin-sam .yui-pg-current-page,
|
|
.yui-skin-sam .yui-dt-selected {
|
|
border:1px solid #fff;
|
|
background-color:#fff;
|
|
}
|
|
.yui-skin-sam .yui-pg-pages {
|
|
margin-left:1ex;
|
|
margin-right:1ex;
|
|
}
|
|
.yui-skin-sam .yui-pg-page {
|
|
margin-right:1px;
|
|
margin-left:1px;
|
|
}
|
|
.yui-skin-sam .yui-pg-first,
|
|
.yui-skin-sam .yui-pg-previous {
|
|
margin-right:3px;
|
|
}
|
|
.yui-skin-sam .yui-pg-next,
|
|
.yui-skin-sam .yui-pg-last {
|
|
margin-left:3px;
|
|
}
|
|
.yui-skin-sam .yui-pg-current,
|
|
.yui-skin-sam .yui-pg-rpp-options {
|
|
margin-right:1em;
|
|
margin-left:1em;
|
|
}
|
|
</textarea>
|
|
</div>
|
|
<div class="yui-u">
|
|
|
|
|
|
<div id="examples">
|
|
<h3 class='firstContent'>DataTable Control (beta) Examples:</h3>
|
|
|
|
<div id="exampleToc">
|
|
<ul>
|
|
<li><a href='../datatable/dt_basic.html'>Basic Example</a></li><li><a href='../datatable/dt_enhanced.html'>Progressive Enhancement</a></li><li><a href='../datatable/dt_formatting.html'>Custom Cell Formatting</a></li><li><a href='../datatable/dt_nestedheaders.html'>Nested Headers</a></li><li><a href='../datatable/dt_xhrjson.html'>JSON Data Over XHR</a></li><li><a href='../datatable/dt_xhrpostxml.html'>XML Data Over XHR With POST</a></li><li><a href='../datatable/dt_xhrtext.html'>Textual Data Over XHR</a></li><li><a href='../datatable/dt_xhrlocalxml.html'>Local XML Data</a></li><li><a href='../datatable/dt_rowadddelete.html'>Adding and Deleting Rows</a></li><li><a href='../datatable/dt_clientpagination.html'>Client-side Pagination</a></li><li><a href='../datatable/dt_clientsorting.html'>Client-side Sorting</a></li><li><a href='../datatable/paginator_datatable_serverpaging.html'>Server-side Pagination</a></li><li><a href='../datatable/dt_serversorting.html'>Server-side Sorting</a></li><li><a href='../datatable/dt_server_pag_sort.html'>Server-side Pagination and Sorting, with Browser History Manager</a></li><li><a href='../datatable/dt_fixedscroll.html'>XY-scrolling, Y-scrolling, and X-scrolling</a></li><li><a href='../datatable/dt_rowselect.html'>Row Selection</a></li><li><a href='../datatable/dt_cellselect.html'>Cell Selection</a></li><li><a href='../datatable/dt_cellediting.html'>Inline Cell Editing</a></li><li><a href='../datatable/dt_contextmenu.html'>Context Menu Integration</a></li><li><a href='../datatable/dt_colshowhide.html'>Showing, Hiding, and Reordering Columns.</a></li><li><a href='../datatable/dt_highlighting.html'>Highlighting Cells, Rows, or Columns</a></li><li><a href='../datatable/dt_complex.html'>Complex Example of Multiple Features</a></li><li><a href='../datatable/dt_autocomplete.html'>Datatable with Autocomplete</a></li><li class='selected'><a href='../datatable/dt_skinning.html'>Skinning Model</a></li><li><a href='../datatable/pg_paginator_exhibition.html'>Configuring the Paginator</a></li><li><a href='../layout/adv_layout.html'>Complex Application (included with examples for Layout Manager (beta))</a></li> </ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="module">
|
|
<h3>More DataTable Control (beta) Resources:</h3>
|
|
<ul>
|
|
<li><a href="http://developer.yahoo.com/yui/datatable/">User's Guide</a> (external)</li>
|
|
<li><a href="../../docs/module_datatable.html">API Documentation</a></li>
|
|
|
|
|
|
<li><a href="http://yuiblog.com/assets/pdf/cheatsheets/datatable.pdf">Cheat Sheet PDF</a> (external)</li></ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="yui-b" id="tocWrapper">
|
|
<!-- TABLE OF CONTENTS -->
|
|
<div id="toc">
|
|
|
|
<ul>
|
|
<li class="sect first">Yahoo! UI Library</li><li class="item"><a title="The Yahoo! User Interface Library (YUI)" href="http://developer.yahoo.com/yui/">Home (external)</a></li><li class="item"><a title="The Yahoo! User Interface Blog" href="http://yuiblog.com">YUIBlog (external)</a></li><li class="item"><a title="The Yahoo! Group YDN-JavaScript hosts the YUI community forum" href="http://tech.groups.yahoo.com/group/ydn-javascript/">YUI Discussion Forum (external)</a></li><li class="item"><a title="The YUI Library can be downloaded from SourceForge" href="http://sourceforge.net/projects/yui/">YUI on Sourceforge (external)</a></li><li class="item"><a title="Instantly searchable API documentation for the entire YUI library." href="../../docs/index.html">API Documentation</a></li><li class="item"><a title="Examples of every YUI utility and control in action" href="../../examples/">Functional Examples</a></li><li class="item"><a title="Videos and podcasts from the YUI Team and from the Yahoo! frontend engineering community." href="http://developer.yahoo.com/yui/theater/">YUI Theater (external)</a></li><li class="item"><a title="YUI is free and open, offered under a BSD license." href="http://developer.yahoo.com/yui/license.html">YUI License (external)</a></li><li class="sect">YUI Functional Examples</li><li class="item"><a title="The YUI Animation Utility - Functional Examples" href="../../examples/animation/index.html">Animation</a></li><li class="item"><a title="The YUI AutoComplete Control - Functional Examples" href="../../examples/autocomplete/index.html">AutoComplete</a></li><li class="item"><a title="The YUI Browser History Manager - Functional Examples" href="../../examples/history/index.html">Browser History Manager</a></li><li class="item"><a title="The YUI Button Control - Functional Examples" href="../../examples/button/index.html">Button</a></li><li class="item"><a title="The YUI Calendar Control - Functional Examples" href="../../examples/calendar/index.html">Calendar</a></li><li class="item"><a title="The YUI Charts Control - Functional Examples" href="../../examples/charts/index.html">Charts (experimental)</a></li><li class="item"><a title="The YUI Color Picker Control - Functional Examples" href="../../examples/colorpicker/index.html">Color Picker</a></li><li class="item"><a title="The YUI Cookie Utility - Functional Examples" href="../../examples/cookie/index.html">Cookie (beta)</a></li><li class="item"><a title="The YUI Connection Manager (AJAX) - Functional Examples" href="../../examples/connection/index.html">Connection Manager</a></li><li class="item"><a title="The YUI Container Family (Module, Overlay, Tooltip, Panel, Dialog, SimpleDialog) - Functional Examples" href="../../examples/container/index.html">Container</a></li><li class="selected "><a title="The YUI DataTable Control - Functional Examples" href="../../examples/datatable/index.html">DataTable (beta)</a></li><li class="item"><a title="The YUI Dom Collection - Functional Examples" href="../../examples/dom/index.html">Dom</a></li><li class="item"><a title="The YUI Drag & Drop Utility - Functional Examples" href="../../examples/dragdrop/index.html">Drag & Drop</a></li><li class="item"><a title="The YUI Event Utility - Functional Examples" href="../../examples/event/index.html">Event</a></li><li class="item"><a title="The YUI Get Utility - Functional Examples" href="../../examples/get/index.html">Get</a></li><li class="item"><a title="The YUI ImageCropper Control - Functional Examples" href="../../examples/imagecropper/index.html">ImageCropper (beta)</a></li><li class="item"><a title="The YUI ImageLoader Utility - Functional Examples" href="../../examples/imageloader/index.html">ImageLoader</a></li><li class="item"><a title="The YUI JSON Utility - Functional Examples" href="../../examples/json/index.html">JSON</a></li><li class="item"><a title="The YUI Layout Manager - Functional Examples" href="../../examples/layout/index.html">Layout Manager (beta)</a></li><li class="item"><a title="The YUI Logger Control - Functional Examples" href="../../examples/logger/index.html">Logger</a></li><li class="item"><a title="The YUI Menu Control - Functional Examples" href="../../examples/menu/index.html">Menu</a></li><li class="item"><a title="The YUI Profiler Utility - Functional Examples" href="../../examples/profiler/index.html">Profiler (beta)</a></li><li class="item"><a title="The YUI ProfileViewer Control - Functional Examples" href="../../examples/profilerviewer/index.html">ProfilerViewer (beta)</a></li><li class="item"><a title="The YUI Resize Utility - Functional Examples" href="../../examples/resize/index.html">Resize (beta)</a></li><li class="item"><a title="The YUI Rich Text Editor - Functional Examples" href="../../examples/editor/index.html">Rich Text Editor (beta)</a></li><li class="item"><a title="The YUI Selector Utility - Functional Examples" href="../../examples/selector/index.html">Selector (beta)</a></li><li class="item"><a title="The YUI Slider Control - Functional Examples" href="../../examples/slider/index.html">Slider</a></li><li class="item"><a title="The YUI TabView Control - Functional Examples" href="../../examples/tabview/index.html">TabView</a></li><li class="item"><a title="The YUI TreeView Control - Functional Examples" href="../../examples/treeview/index.html">TreeView</a></li><li class="item"><a title="The YUI Uploader Utility - Functional Examples" href="../../examples/uploader/index.html">Uploader (experimental)</a></li><li class="item"><a title="The YUI YAHOO Global Object - Functional Examples" href="../../examples/yahoo/index.html">YAHOO Global Object</a></li><li class="item"><a title="The YUI Loader Utility - Functional Examples" href="../../examples/yuiloader/index.html">YUI Loader (beta)</a></li><li class="item"><a title="The YUI Test Utility - Functional Examples" href="../../examples/yuitest/index.html">YUI Test</a></li><li class="item"><a title="YUI Reset CSS - Functional Examples" href="../../examples/reset/index.html">Reset CSS</a></li><li class="item"><a title="YUI Base CSS - Functional Examples" href="../../examples/base/index.html">Base CSS</a></li><li class="item"><a title="YUI Fonts CSS - Functional Examples" href="../../examples/fonts/index.html">Fonts CSS</a></li><li class="item"><a title="YUI Grids CSS - Functional Examples" href="../../examples/grids/index.html">Grids CSS</a></li><li class="sect">YUI Articles on the YUI Website</li><li class="item"><a title="Answers to Frequently Asked Questions about the YUI Library" href="http://developer.yahoo.com/yui/articles/faq/">YUI FAQ (external)</a></li><li class="item"><a title="Yahoo!'s philosophy of Graded Browser Support" href="http://developer.yahoo.com/yui/articles/gbs/">Graded Browser Support (external)</a></li><li class="item"><a title="Reporting Bugs and Making Feature Requests for YUI Components" href="http://developer.yahoo.com/yui/articles/reportingbugs/">Bug Reports/Feature Requests (external)</a></li><li class="item"><a title="Serve YUI source files from Yahoo! -- free, fast, and simple" href="http://developer.yahoo.com/yui/articles/hosting/">Serving YUI Files from Yahoo! (external)</a></li><li class="item"><a title="Best practices for working with web services while protecting user privacy" href="http://developer.yahoo.com/security/">Security Best Practices (external)</a></li></ul>
|
|
</div>
|
|
</div>
|
|
</div><!--closes bd-->
|
|
|
|
<div id="ft">
|
|
<p class="first">Copyright © 2008 Yahoo! Inc. All rights reserved.</p>
|
|
<p><a href="http://privacy.yahoo.com/privacy/us/devel/index.html">Privacy Policy</a> -
|
|
<a href="http://docs.yahoo.com/info/terms/">Terms of Service</a> -
|
|
<a href="http://docs.yahoo.com/info/copyright/copyright.html">Copyright Policy</a> -
|
|
<a href="http://careers.yahoo.com/">Job Openings</a></p>
|
|
</div>
|
|
</div>
|
|
<script src="../../assets/dpSyntaxHighlighter.js"></script>
|
|
<script language="javascript">
|
|
dp.SyntaxHighlighter.HighlightAll('code');
|
|
</script>
|
|
|
|
<script src='../../assets/YUIexamples.js'></script>
|
|
|
|
|
|
</body>
|
|
</html>
|