src/cm/media/js/lib/yui/yui_3.10.3/docs/datatable/datatable-scroll.html
author Yves-Marie Haussonne <ymh.work+github@gmail.com>
Fri, 09 May 2014 18:35:26 +0200
changeset 656 a84519031134
parent 525 89ef5ed3c48b
permissions -rw-r--r--
add link to "privacy policy" in the header test
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
525
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
     1
<!DOCTYPE html>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
     2
<html lang="en">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
     3
<head>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
     4
    <meta charset="utf-8">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
     5
    <title>Example: Scrolling DataTable</title>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
     6
    <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
     7
    <link rel="stylesheet" href="../../build/cssgrids/cssgrids-min.css">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
     8
    <link rel="stylesheet" href="../assets/css/main.css">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
     9
    <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    10
    <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    11
    <script src="../../build/yui/yui-min.js"></script>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    12
    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    13
</head>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    14
<body>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    15
<!--
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    16
<a href="https://github.com/yui/yui3"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    17
-->
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    18
<div id="doc">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    19
    <div id="hd">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    20
        <h1><img src="http://yuilibrary.com/img/yui-logo.png"></h1>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    21
    </div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    22
    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    23
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    24
            <h1>Example: Scrolling DataTable</h1>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    25
    <div class="yui3-g">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    26
        <div class="yui3-u-3-4">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    27
            <div id="main">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    28
                <div class="content"><style scoped>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    29
/* custom styles for this example */
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    30
.example .yui3-datatable {
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    31
    margin-bottom: 1em;
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    32
}
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    33
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    34
/* css to counter global site css */
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    35
.example table {
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    36
    width: auto;
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    37
}
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    38
.example caption {
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    39
    display: table-caption;
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    40
}
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    41
.example th,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    42
.example td {
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    43
    text-transform: none;
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    44
    border: 0 none;
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    45
}
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    46
</style>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    47
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    48
<div class="intro">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    49
    <p>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    50
        Datatables can be made to scroll along the x and y axes. Include 
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    51
        "<code>datatable-scroll</code>" in your <code>use()</code> line to enable the feature.
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    52
    </p>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    53
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    54
    <p>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    55
        This example shows the basic scrolling configurations available.
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    56
    </p>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    57
    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    58
    <p>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    59
        <strong>Note:</strong> Scrolling is not currently supported on the
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    60
        Android WebKit browser.
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    61
    </p>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    62
</div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    63
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    64
<h3> Vertically Scrolling Table</h3>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    65
<div class="example yui3-skin-sam">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    66
    <div id="scrolling-y" class="yui3-skin-sam tableDemo"></div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    67
</div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    68
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    69
<p>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    70
    Enable vertical scrolling by setting <code>scrollable</code> to "y" and assigning the
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    71
    <code>height</code>.
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    72
</p>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    73
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    74
<pre class="code prettyprint">YUI().use(&#x27;datatable-scroll&#x27;, function (Y) {
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    75
    var state_census_data = [ ... ],
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    76
        table;
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    77
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    78
    table = new Y.DataTable({
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    79
        caption: &quot;Y axis scrolling table&quot;,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    80
        columns: [
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    81
            { key: &quot;STATE&quot;,     label: &quot;State&quot; },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    82
            { key: &quot;TOTAL_POP&quot;, label: &quot;Total Population&quot; }
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    83
        ],
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    84
        data: state_census_data,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    85
        scrollable: &quot;y&quot;,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    86
        height:&quot;200px&quot;
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    87
    });
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    88
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    89
    table.render(&#x27;#scrolling-y&#x27;);
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    90
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    91
});</pre>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    92
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    93
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    94
<h3>Horizontally Scrolling Table</h3>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    95
<div class="example yui3-skin-sam">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    96
    <div id="scrolling-x" class="tableDemo"></div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    97
</div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    98
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
    99
<p>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   100
    Enable horizontal scrolling by setting <code>scrollable</code> to "x" and assigning
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   101
    the <code>width</code>.
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   102
</p>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   103
<pre class="code prettyprint">YUI().use(&#x27;datatable-scroll&#x27;, function (Y) {
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   104
    var state_census_data = [ ... ],
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   105
        table;
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   106
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   107
    table = new Y.DataTable({
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   108
        caption: &quot;X axis scrolling table&quot;,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   109
        columns: [
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   110
            { key: &quot;ANSI&quot; },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   111
            { key: &quot;STATE&quot;,           label:&quot;State&quot; },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   112
            { key: &quot;TOTAL_POP&quot;,       label:&quot;Total Population&quot; },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   113
            { key: &quot;LAND_AREA&quot;,       label:&quot;Land Area&quot; },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   114
            { key: &quot;POP_PER_SQ_MILE&quot;, label:&quot;Pop&#x2F;Square Mile&quot; }
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   115
        ],
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   116
        data: state_census_data.slice(0, 7), &#x2F;&#x2F; truncated for the example
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   117
        scrollable: &quot;x&quot;,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   118
        width: &quot;250px&quot;
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   119
    });
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   120
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   121
    table.render(&#x27;#scrolling-x&#x27;);
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   122
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   123
});</pre>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   124
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   125
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   126
<h3>Fully Scrolling Datatable</h3>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   127
<div class="example yui3-skin-sam">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   128
    <div id="scrolling-xy" class="tableDemo"></div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   129
</div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   130
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   131
<p>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   132
    Enable scrolling along both axes by setting <code>scrollable</code> to <code>true</code> or "xy"
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   133
    and assigning both <code>height</code> and <code>width</code>.
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   134
</p>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   135
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   136
<pre class="code prettyprint">YUI().use(&#x27;datatable-scroll&#x27;, function (Y) {
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   137
    var state_census_data = [ ... ],
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   138
        table;
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   139
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   140
    table = new Y.DataTable({
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   141
        caption: &quot;X and Y axis scrolling table&quot;,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   142
        columns: [
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   143
            { key: &quot;ANSI&quot; },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   144
            { key: &quot;STATE&quot;,           label:&quot;State&quot; },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   145
            { key: &quot;TOTAL_POP&quot;,       label:&quot;Total Population&quot; },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   146
            { key: &quot;LAND_AREA&quot;,       label:&quot;Land Area&quot; },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   147
            { key: &quot;POP_PER_SQ_MILE&quot;, label:&quot;Pop&#x2F;Square Mile&quot; }
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   148
        ],
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   149
        data: state_census_data,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   150
        scrollable: true,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   151
        width: &quot;300px&quot;,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   152
        height: &quot;150px&quot;
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   153
    });
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   154
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   155
    table.render(&#x27;#scrolling-xy&#x27;);
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   156
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   157
});</pre>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   158
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   159
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   160
<h3>Using Percentage Widths</h3>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   161
<div class="example yui3-skin-sam">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   162
    <div id="scrolling-100pct" class="tableDemo"></div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   163
</div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   164
<p>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   165
    Scrolling DataTables support percentage <code>width</code>s.  The table above is
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   166
    configured to scroll vertically with a <code>width</code> of "100%".
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   167
</p>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   168
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   169
<pre class="code prettyprint">YUI().use(&#x27;datatable-scroll&#x27;, function (Y) {
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   170
    var state_census_data = [ ... ],
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   171
        table;
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   172
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   173
    table = new Y.DataTable({
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   174
        caption: &quot;100% width scrolling table&quot;,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   175
        columns: [
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   176
            { key: &quot;STATE&quot;,     label: &quot;State&quot; },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   177
            { key: &quot;TOTAL_POP&quot;, label: &quot;Total Population&quot; }
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   178
        ],
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   179
        data: state_census_data,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   180
        scrollable: &quot;y&quot;,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   181
        height:&quot;200px&quot;,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   182
        width: &quot;100%&quot;
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   183
    });
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   184
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   185
    table.render(&#x27;#scrolling-100pct&#x27;);
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   186
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   187
});</pre>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   188
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   189
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   190
<h3>The Data</h3>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   191
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   192
<p>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   193
    This is the data that is used for each example table. The keys in each
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   194
    tables' <code>columns</code> correspond with the keys in the data.
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   195
</p>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   196
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   197
<pre class="code prettyprint">var sampleData = [
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   198
    { ANSI: &quot;00000&quot;, STATE: &quot;UNITED STATES&quot;, TOTAL_POP: 307006550, LAND_AREA: 3537438.44, POP_PER_SQ_MILE: 79.6 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   199
    { ANSI: &quot;01000&quot;, STATE: &quot;ALABAMA&quot;, TOTAL_POP: 4708708, LAND_AREA: 50744, POP_PER_SQ_MILE: 87.6 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   200
    { ANSI: &quot;02000&quot;, STATE: &quot;ALASKA&quot;, TOTAL_POP: 698473, LAND_AREA: 571951.26, POP_PER_SQ_MILE: 1.1 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   201
    { ANSI: &quot;04000&quot;, STATE: &quot;ARIZONA&quot;, TOTAL_POP: 6595778, LAND_AREA: 113634.57, POP_PER_SQ_MILE: 45.2 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   202
    ...
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   203
];</pre>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   204
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   205
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   206
<h3>Setting scrolling direction and dimensions</h3>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   207
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   208
<p>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   209
    The values of <code>scrollable</code> and the respective dimensional attribute
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   210
    determine the scrolling direction(s) of each datatable instance.
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   211
</p>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   212
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   213
<p>Other things to consider are:</p>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   214
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   215
<ol>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   216
    <li>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   217
        If a DataTable is configured with <code>scrollable</code> of "y", but the <code>height</code>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   218
        is not set, it will <strong>not</strong> be made scrollable. Likewise
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   219
        for "x" and <code>width</code>.  The respective dimension attribute is required.
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   220
    </li>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   221
    <li>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   222
        If the configured <code>width</code> of an "x" or "xy" scrolling table is wider
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   223
        than necessary to fit the data, the table width will be expanded to
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   224
        the assigned <code>width</code>.
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   225
    </li>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   226
    <li>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   227
        If a DataTable is configured with <code>scrollable</code> of "y", but the <code>width</code>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   228
        attribute is also set, DataTable will attempt to make the table that
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   229
        wide.  But if the table data doesn't fit within the configured width,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   230
        the table will expand naturally to fit the data.
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   231
    </li>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   232
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   233
</ol>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   234
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   235
<h3>Full Code Listing</h3>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   236
<p>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   237
<strong>Note:</strong> be sure to add the <code>yui3-skin-sam</code> classname to the
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   238
page's <code>&lt;body&gt;</code> element or to a parent element of the widget in order to apply
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   239
the default CSS skin. See <a href="http://yuilibrary.com/yui/docs/tutorials/skins/">Understanding Skinning</a>.
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   240
</p>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   241
<pre class="code prettyprint">&lt;body class=&quot;yui3-skin-sam&quot;&gt; &lt;!-- You need this skin class --&gt;</pre>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   242
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   243
<pre class="code prettyprint">YUI().use(&#x27;datatable-scroll&#x27;, function (Y) {
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   244
    var state_census_data = [
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   245
        { ANSI: &quot;00000&quot;, STATE: &quot;UNITED STATES&quot;, TOTAL_POP: 307006550, LAND_AREA: 3537438.44, POP_PER_SQ_MILE: 79.6 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   246
        { ANSI: &quot;01000&quot;, STATE: &quot;ALABAMA&quot;, TOTAL_POP: 4708708, LAND_AREA: 50744, POP_PER_SQ_MILE: 87.6 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   247
        { ANSI: &quot;02000&quot;, STATE: &quot;ALASKA&quot;, TOTAL_POP: 698473, LAND_AREA: 571951.26, POP_PER_SQ_MILE: 1.1 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   248
        { ANSI: &quot;04000&quot;, STATE: &quot;ARIZONA&quot;, TOTAL_POP: 6595778, LAND_AREA: 113634.57, POP_PER_SQ_MILE: 45.2 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   249
        { ANSI: &quot;05000&quot;, STATE: &quot;ARKANSAS&quot;, TOTAL_POP: 2889450, LAND_AREA: 52068.17, POP_PER_SQ_MILE: 51.3 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   250
        { ANSI: &quot;06000&quot;, STATE: &quot;CALIFORNIA&quot;, TOTAL_POP: 36961664, LAND_AREA: 155959.34, POP_PER_SQ_MILE: 217.2 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   251
        { ANSI: &quot;08000&quot;, STATE: &quot;COLORADO&quot;, TOTAL_POP: 5024748, LAND_AREA: 103717.53, POP_PER_SQ_MILE: 41.5 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   252
        { ANSI: &quot;09000&quot;, STATE: &quot;CONNECTICUT&quot;, TOTAL_POP: 3518288, LAND_AREA: 4844.8, POP_PER_SQ_MILE: 702.9 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   253
        { ANSI: &quot;10000&quot;, STATE: &quot;DELAWARE&quot;, TOTAL_POP: 885122, LAND_AREA: 1953.56, POP_PER_SQ_MILE: 401 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   254
        { ANSI: &quot;11000&quot;, STATE: &quot;DISTRICT OF COLUMBIA&quot;, TOTAL_POP: 599657, LAND_AREA: 61.4, POP_PER_SQ_MILE: 9378 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   255
        { ANSI: &quot;12000&quot;, STATE: &quot;FLORIDA&quot;, TOTAL_POP: 18537969, LAND_AREA: 53926.82, POP_PER_SQ_MILE: 296.4 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   256
        { ANSI: &quot;13000&quot;, STATE: &quot;GEORGIA&quot;, TOTAL_POP: 9829211, LAND_AREA: 57906.14, POP_PER_SQ_MILE: 141.4 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   257
        { ANSI: &quot;15000&quot;, STATE: &quot;HAWAII&quot;, TOTAL_POP: 1295178, LAND_AREA: 6422.62, POP_PER_SQ_MILE: 188.6 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   258
        { ANSI: &quot;16000&quot;, STATE: &quot;IDAHO&quot;, TOTAL_POP: 1545801, LAND_AREA: 82747.21, POP_PER_SQ_MILE: 15.6 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   259
        { ANSI: &quot;17000&quot;, STATE: &quot;ILLINOIS&quot;, TOTAL_POP: 12910409, LAND_AREA: 55583.58, POP_PER_SQ_MILE: 223.4 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   260
        { ANSI: &quot;18000&quot;, STATE: &quot;INDIANA&quot;, TOTAL_POP: 6423113, LAND_AREA: 35866.9, POP_PER_SQ_MILE: 169.5 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   261
        { ANSI: &quot;19000&quot;, STATE: &quot;IOWA&quot;, TOTAL_POP: 3007856, LAND_AREA: 55869.36, POP_PER_SQ_MILE: 52.4 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   262
        { ANSI: &quot;20000&quot;, STATE: &quot;KANSAS&quot;, TOTAL_POP: 2818747, LAND_AREA: 81814.88, POP_PER_SQ_MILE: 32.9 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   263
        { ANSI: &quot;21000&quot;, STATE: &quot;KENTUCKY&quot;, TOTAL_POP: 4314113, LAND_AREA: 39728.18, POP_PER_SQ_MILE: 101.7 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   264
        { ANSI: &quot;22000&quot;, STATE: &quot;LOUISIANA&quot;, TOTAL_POP: 4492076, LAND_AREA: 43561.85, POP_PER_SQ_MILE: 102.6 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   265
        { ANSI: &quot;23000&quot;, STATE: &quot;MAINE&quot;, TOTAL_POP: 1318301, LAND_AREA: 30861.55, POP_PER_SQ_MILE: 41.3 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   266
        { ANSI: &quot;24000&quot;, STATE: &quot;MARYLAND&quot;, TOTAL_POP: 5699478, LAND_AREA: 9773.82, POP_PER_SQ_MILE: 541.9 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   267
        { ANSI: &quot;25000&quot;, STATE: &quot;MASSACHUSETTS&quot;, TOTAL_POP: 6593587, LAND_AREA: 7840.02, POP_PER_SQ_MILE: 809.8 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   268
        { ANSI: &quot;26000&quot;, STATE: &quot;MICHIGAN&quot;, TOTAL_POP: 9969727, LAND_AREA: 56803.82, POP_PER_SQ_MILE: 175 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   269
        { ANSI: &quot;27000&quot;, STATE: &quot;MINNESOTA&quot;, TOTAL_POP: 5266214, LAND_AREA: 79610.08, POP_PER_SQ_MILE: 61.8 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   270
        { ANSI: &quot;28000&quot;, STATE: &quot;MISSISSIPPI&quot;, TOTAL_POP: 2951996, LAND_AREA: 46906.96, POP_PER_SQ_MILE: 60.6 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   271
        { ANSI: &quot;29000&quot;, STATE: &quot;MISSOURI&quot;, TOTAL_POP: 5987580, LAND_AREA: 68885.93, POP_PER_SQ_MILE: 81.2 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   272
        { ANSI: &quot;30000&quot;, STATE: &quot;MONTANA&quot;, TOTAL_POP: 974989, LAND_AREA: 145552.43, POP_PER_SQ_MILE: 6.2 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   273
        { ANSI: &quot;31000&quot;, STATE: &quot;NEBRASKA&quot;, TOTAL_POP: 1796619, LAND_AREA: 76872.41, POP_PER_SQ_MILE: 22.3 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   274
        { ANSI: &quot;32000&quot;, STATE: &quot;NEVADA&quot;, TOTAL_POP: 2643085, LAND_AREA: 109825.99, POP_PER_SQ_MILE: 18.2 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   275
        { ANSI: &quot;33000&quot;, STATE: &quot;NEW HAMPSHIRE&quot;, TOTAL_POP: 1324575, LAND_AREA: 8968.1, POP_PER_SQ_MILE: 137.8 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   276
        { ANSI: &quot;34000&quot;, STATE: &quot;NEW JERSEY&quot;, TOTAL_POP: 8707739, LAND_AREA: 7417.34, POP_PER_SQ_MILE: 1134.5},
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   277
        { ANSI: &quot;35000&quot;, STATE: &quot;NEW MEXICO&quot;, TOTAL_POP: 2009671, LAND_AREA: 121355.53, POP_PER_SQ_MILE: 15 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   278
        { ANSI: &quot;36000&quot;, STATE: &quot;NEW YORK&quot;, TOTAL_POP: 19541453, LAND_AREA: 47213.79, POP_PER_SQ_MILE: 401.9 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   279
        { ANSI: &quot;37000&quot;, STATE: &quot;NORTH CAROLINA&quot;, TOTAL_POP: 9380884, LAND_AREA: 48710.88, POP_PER_SQ_MILE: 165.2 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   280
        { ANSI: &quot;38000&quot;, STATE: &quot;NORTH DAKOTA&quot;, TOTAL_POP: 646844, LAND_AREA: 68975.93, POP_PER_SQ_MILE: 9.3 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   281
        { ANSI: &quot;39000&quot;, STATE: &quot;OHIO&quot;, TOTAL_POP: 11542645, LAND_AREA: 40948.38, POP_PER_SQ_MILE: 277.3 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   282
        { ANSI: &quot;40000&quot;, STATE: &quot;OKLAHOMA&quot;, TOTAL_POP: 3687050, LAND_AREA: 68667.06, POP_PER_SQ_MILE: 50.3 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   283
        { ANSI: &quot;41000&quot;, STATE: &quot;OREGON&quot;, TOTAL_POP: 3825657, LAND_AREA: 95996.79, POP_PER_SQ_MILE: 35.6 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   284
        { ANSI: &quot;42000&quot;, STATE: &quot;PENNSYLVANIA&quot;, TOTAL_POP: 12604767, LAND_AREA: 44816.61, POP_PER_SQ_MILE: 274 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   285
        { ANSI: &quot;44000&quot;, STATE: &quot;RHODE ISLAND&quot;, TOTAL_POP: 1053209, LAND_AREA: 1044.93, POP_PER_SQ_MILE: 1003.2 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   286
        { ANSI: &quot;45000&quot;, STATE: &quot;SOUTH CAROLINA&quot;, TOTAL_POP: 4561242, LAND_AREA: 30109.47, POP_PER_SQ_MILE: 133.2 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   287
        { ANSI: &quot;46000&quot;, STATE: &quot;SOUTH DAKOTA&quot;, TOTAL_POP: 812383, LAND_AREA: 75884.64, POP_PER_SQ_MILE: 9.9 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   288
        { ANSI: &quot;47000&quot;, STATE: &quot;TENNESSEE&quot;, TOTAL_POP: 6296254, LAND_AREA: 41217.12, POP_PER_SQ_MILE: 138 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   289
        { ANSI: &quot;48000&quot;, STATE: &quot;TEXAS&quot;, TOTAL_POP: 24782302, LAND_AREA: 261797.12, POP_PER_SQ_MILE: 79.6 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   290
        { ANSI: &quot;49000&quot;, STATE: &quot;UTAH&quot;, TOTAL_POP: 2784572, LAND_AREA: 82143.65, POP_PER_SQ_MILE: 27.2 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   291
        { ANSI: &quot;50000&quot;, STATE: &quot;VERMONT&quot;, TOTAL_POP: 621760, LAND_AREA: 9249.56, POP_PER_SQ_MILE: 65.8 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   292
        { ANSI: &quot;51000&quot;, STATE: &quot;VIRGINIA&quot;, TOTAL_POP: 7882590, LAND_AREA: 39594.07, POP_PER_SQ_MILE: 178.8 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   293
        { ANSI: &quot;53000&quot;, STATE: &quot;WASHINGTON&quot;, TOTAL_POP: 6664195, LAND_AREA: 66544.06, POP_PER_SQ_MILE: 88.6 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   294
        { ANSI: &quot;54000&quot;, STATE: &quot;WEST VIRGINIA&quot;, TOTAL_POP: 1819777, LAND_AREA: 24077.73, POP_PER_SQ_MILE: 75.1 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   295
        { ANSI: &quot;55000&quot;, STATE: &quot;WISCONSIN&quot;, TOTAL_POP: 5654774, LAND_AREA: 54310.1, POP_PER_SQ_MILE: 98.8 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   296
        { ANSI: &quot;56000&quot;, STATE: &quot;WYOMING&quot;, TOTAL_POP: 544270, LAND_AREA: 97100.4, POP_PER_SQ_MILE: 5.1 }
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   297
    ];
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   298
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   299
    var table;
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   300
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   301
    table = new Y.DataTable({
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   302
        caption: &quot;Y axis scrolling table&quot;,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   303
        columns: [
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   304
            { key: &quot;STATE&quot;,     label: &quot;State&quot; },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   305
            { key: &quot;TOTAL_POP&quot;, label: &quot;Total Population&quot; }
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   306
        ],
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   307
        data: state_census_data,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   308
        scrollable: &quot;y&quot;,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   309
        height:&quot;200px&quot;
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   310
    });
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   311
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   312
    table.render(&#x27;#scrolling-y&#x27;);
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   313
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   314
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   315
    table = new Y.DataTable({
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   316
        caption: &quot;X axis scrolling table&quot;,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   317
        columns: [
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   318
            { key: &quot;ANSI&quot; },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   319
            { key: &quot;STATE&quot;,           label:&quot;State&quot; },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   320
            { key: &quot;TOTAL_POP&quot;,       label:&quot;Total Population&quot; },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   321
            { key: &quot;LAND_AREA&quot;,       label:&quot;Land Area&quot; },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   322
            { key: &quot;POP_PER_SQ_MILE&quot;, label:&quot;Pop&#x2F;Square Mile&quot; }
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   323
        ],
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   324
        data: state_census_data.slice(0, 7), &#x2F;&#x2F; truncated for the example
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   325
        scrollable: &quot;x&quot;,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   326
        width: &quot;250px&quot;
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   327
    });
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   328
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   329
    table.render(&#x27;#scrolling-x&#x27;);
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   330
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   331
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   332
    table = new Y.DataTable({
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   333
        caption: &quot;X and Y axis scrolling table&quot;,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   334
        columns: [
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   335
            { key: &quot;ANSI&quot; },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   336
            { key: &quot;STATE&quot;,           label:&quot;State&quot; },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   337
            { key: &quot;TOTAL_POP&quot;,       label:&quot;Total Population&quot; },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   338
            { key: &quot;LAND_AREA&quot;,       label:&quot;Land Area&quot; },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   339
            { key: &quot;POP_PER_SQ_MILE&quot;, label:&quot;Pop&#x2F;Square Mile&quot; }
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   340
        ],
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   341
        data: state_census_data,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   342
        scrollable: true,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   343
        width: &quot;300px&quot;,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   344
        height: &quot;150px&quot;
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   345
    });
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   346
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   347
    table.render(&#x27;#scrolling-xy&#x27;);
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   348
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   349
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   350
    table = new Y.DataTable({
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   351
        caption: &quot;100% width scrolling table&quot;,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   352
        columns: [
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   353
            { key: &quot;STATE&quot;,     label: &quot;State&quot; },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   354
            { key: &quot;TOTAL_POP&quot;, label: &quot;Total Population&quot; }
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   355
        ],
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   356
        data: state_census_data,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   357
        scrollable: &quot;y&quot;,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   358
        height:&quot;200px&quot;,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   359
        width: &quot;100%&quot;
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   360
    });
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   361
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   362
    table.render(&#x27;#scrolling-100pct&#x27;);
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   363
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   364
});</pre>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   365
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   366
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   367
<script>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   368
YUI().use('datatable-scroll', function (Y) {
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   369
    var state_census_data = [
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   370
        { ANSI: "00000", STATE: "UNITED STATES", TOTAL_POP: 307006550, LAND_AREA: 3537438.44, POP_PER_SQ_MILE: 79.6 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   371
        { ANSI: "01000", STATE: "ALABAMA", TOTAL_POP: 4708708, LAND_AREA: 50744, POP_PER_SQ_MILE: 87.6 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   372
        { ANSI: "02000", STATE: "ALASKA", TOTAL_POP: 698473, LAND_AREA: 571951.26, POP_PER_SQ_MILE: 1.1 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   373
        { ANSI: "04000", STATE: "ARIZONA", TOTAL_POP: 6595778, LAND_AREA: 113634.57, POP_PER_SQ_MILE: 45.2 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   374
        { ANSI: "05000", STATE: "ARKANSAS", TOTAL_POP: 2889450, LAND_AREA: 52068.17, POP_PER_SQ_MILE: 51.3 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   375
        { ANSI: "06000", STATE: "CALIFORNIA", TOTAL_POP: 36961664, LAND_AREA: 155959.34, POP_PER_SQ_MILE: 217.2 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   376
        { ANSI: "08000", STATE: "COLORADO", TOTAL_POP: 5024748, LAND_AREA: 103717.53, POP_PER_SQ_MILE: 41.5 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   377
        { ANSI: "09000", STATE: "CONNECTICUT", TOTAL_POP: 3518288, LAND_AREA: 4844.8, POP_PER_SQ_MILE: 702.9 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   378
        { ANSI: "10000", STATE: "DELAWARE", TOTAL_POP: 885122, LAND_AREA: 1953.56, POP_PER_SQ_MILE: 401 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   379
        { ANSI: "11000", STATE: "DISTRICT OF COLUMBIA", TOTAL_POP: 599657, LAND_AREA: 61.4, POP_PER_SQ_MILE: 9378 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   380
        { ANSI: "12000", STATE: "FLORIDA", TOTAL_POP: 18537969, LAND_AREA: 53926.82, POP_PER_SQ_MILE: 296.4 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   381
        { ANSI: "13000", STATE: "GEORGIA", TOTAL_POP: 9829211, LAND_AREA: 57906.14, POP_PER_SQ_MILE: 141.4 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   382
        { ANSI: "15000", STATE: "HAWAII", TOTAL_POP: 1295178, LAND_AREA: 6422.62, POP_PER_SQ_MILE: 188.6 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   383
        { ANSI: "16000", STATE: "IDAHO", TOTAL_POP: 1545801, LAND_AREA: 82747.21, POP_PER_SQ_MILE: 15.6 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   384
        { ANSI: "17000", STATE: "ILLINOIS", TOTAL_POP: 12910409, LAND_AREA: 55583.58, POP_PER_SQ_MILE: 223.4 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   385
        { ANSI: "18000", STATE: "INDIANA", TOTAL_POP: 6423113, LAND_AREA: 35866.9, POP_PER_SQ_MILE: 169.5 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   386
        { ANSI: "19000", STATE: "IOWA", TOTAL_POP: 3007856, LAND_AREA: 55869.36, POP_PER_SQ_MILE: 52.4 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   387
        { ANSI: "20000", STATE: "KANSAS", TOTAL_POP: 2818747, LAND_AREA: 81814.88, POP_PER_SQ_MILE: 32.9 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   388
        { ANSI: "21000", STATE: "KENTUCKY", TOTAL_POP: 4314113, LAND_AREA: 39728.18, POP_PER_SQ_MILE: 101.7 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   389
        { ANSI: "22000", STATE: "LOUISIANA", TOTAL_POP: 4492076, LAND_AREA: 43561.85, POP_PER_SQ_MILE: 102.6 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   390
        { ANSI: "23000", STATE: "MAINE", TOTAL_POP: 1318301, LAND_AREA: 30861.55, POP_PER_SQ_MILE: 41.3 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   391
        { ANSI: "24000", STATE: "MARYLAND", TOTAL_POP: 5699478, LAND_AREA: 9773.82, POP_PER_SQ_MILE: 541.9 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   392
        { ANSI: "25000", STATE: "MASSACHUSETTS", TOTAL_POP: 6593587, LAND_AREA: 7840.02, POP_PER_SQ_MILE: 809.8 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   393
        { ANSI: "26000", STATE: "MICHIGAN", TOTAL_POP: 9969727, LAND_AREA: 56803.82, POP_PER_SQ_MILE: 175 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   394
        { ANSI: "27000", STATE: "MINNESOTA", TOTAL_POP: 5266214, LAND_AREA: 79610.08, POP_PER_SQ_MILE: 61.8 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   395
        { ANSI: "28000", STATE: "MISSISSIPPI", TOTAL_POP: 2951996, LAND_AREA: 46906.96, POP_PER_SQ_MILE: 60.6 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   396
        { ANSI: "29000", STATE: "MISSOURI", TOTAL_POP: 5987580, LAND_AREA: 68885.93, POP_PER_SQ_MILE: 81.2 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   397
        { ANSI: "30000", STATE: "MONTANA", TOTAL_POP: 974989, LAND_AREA: 145552.43, POP_PER_SQ_MILE: 6.2 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   398
        { ANSI: "31000", STATE: "NEBRASKA", TOTAL_POP: 1796619, LAND_AREA: 76872.41, POP_PER_SQ_MILE: 22.3 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   399
        { ANSI: "32000", STATE: "NEVADA", TOTAL_POP: 2643085, LAND_AREA: 109825.99, POP_PER_SQ_MILE: 18.2 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   400
        { ANSI: "33000", STATE: "NEW HAMPSHIRE", TOTAL_POP: 1324575, LAND_AREA: 8968.1, POP_PER_SQ_MILE: 137.8 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   401
        { ANSI: "34000", STATE: "NEW JERSEY", TOTAL_POP: 8707739, LAND_AREA: 7417.34, POP_PER_SQ_MILE: 1134.5},
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   402
        { ANSI: "35000", STATE: "NEW MEXICO", TOTAL_POP: 2009671, LAND_AREA: 121355.53, POP_PER_SQ_MILE: 15 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   403
        { ANSI: "36000", STATE: "NEW YORK", TOTAL_POP: 19541453, LAND_AREA: 47213.79, POP_PER_SQ_MILE: 401.9 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   404
        { ANSI: "37000", STATE: "NORTH CAROLINA", TOTAL_POP: 9380884, LAND_AREA: 48710.88, POP_PER_SQ_MILE: 165.2 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   405
        { ANSI: "38000", STATE: "NORTH DAKOTA", TOTAL_POP: 646844, LAND_AREA: 68975.93, POP_PER_SQ_MILE: 9.3 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   406
        { ANSI: "39000", STATE: "OHIO", TOTAL_POP: 11542645, LAND_AREA: 40948.38, POP_PER_SQ_MILE: 277.3 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   407
        { ANSI: "40000", STATE: "OKLAHOMA", TOTAL_POP: 3687050, LAND_AREA: 68667.06, POP_PER_SQ_MILE: 50.3 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   408
        { ANSI: "41000", STATE: "OREGON", TOTAL_POP: 3825657, LAND_AREA: 95996.79, POP_PER_SQ_MILE: 35.6 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   409
        { ANSI: "42000", STATE: "PENNSYLVANIA", TOTAL_POP: 12604767, LAND_AREA: 44816.61, POP_PER_SQ_MILE: 274 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   410
        { ANSI: "44000", STATE: "RHODE ISLAND", TOTAL_POP: 1053209, LAND_AREA: 1044.93, POP_PER_SQ_MILE: 1003.2 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   411
        { ANSI: "45000", STATE: "SOUTH CAROLINA", TOTAL_POP: 4561242, LAND_AREA: 30109.47, POP_PER_SQ_MILE: 133.2 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   412
        { ANSI: "46000", STATE: "SOUTH DAKOTA", TOTAL_POP: 812383, LAND_AREA: 75884.64, POP_PER_SQ_MILE: 9.9 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   413
        { ANSI: "47000", STATE: "TENNESSEE", TOTAL_POP: 6296254, LAND_AREA: 41217.12, POP_PER_SQ_MILE: 138 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   414
        { ANSI: "48000", STATE: "TEXAS", TOTAL_POP: 24782302, LAND_AREA: 261797.12, POP_PER_SQ_MILE: 79.6 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   415
        { ANSI: "49000", STATE: "UTAH", TOTAL_POP: 2784572, LAND_AREA: 82143.65, POP_PER_SQ_MILE: 27.2 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   416
        { ANSI: "50000", STATE: "VERMONT", TOTAL_POP: 621760, LAND_AREA: 9249.56, POP_PER_SQ_MILE: 65.8 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   417
        { ANSI: "51000", STATE: "VIRGINIA", TOTAL_POP: 7882590, LAND_AREA: 39594.07, POP_PER_SQ_MILE: 178.8 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   418
        { ANSI: "53000", STATE: "WASHINGTON", TOTAL_POP: 6664195, LAND_AREA: 66544.06, POP_PER_SQ_MILE: 88.6 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   419
        { ANSI: "54000", STATE: "WEST VIRGINIA", TOTAL_POP: 1819777, LAND_AREA: 24077.73, POP_PER_SQ_MILE: 75.1 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   420
        { ANSI: "55000", STATE: "WISCONSIN", TOTAL_POP: 5654774, LAND_AREA: 54310.1, POP_PER_SQ_MILE: 98.8 },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   421
        { ANSI: "56000", STATE: "WYOMING", TOTAL_POP: 544270, LAND_AREA: 97100.4, POP_PER_SQ_MILE: 5.1 }
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   422
    ];
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   423
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   424
    var table;
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   425
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   426
    table = new Y.DataTable({
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   427
        caption: "Y axis scrolling table",
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   428
        columns: [
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   429
            { key: "STATE",     label: "State" },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   430
            { key: "TOTAL_POP", label: "Total Population" }
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   431
        ],
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   432
        data: state_census_data,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   433
        scrollable: "y",
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   434
        height:"200px"
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   435
    });
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   436
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   437
    table.render('#scrolling-y');
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   438
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   439
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   440
    table = new Y.DataTable({
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   441
        caption: "X axis scrolling table",
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   442
        columns: [
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   443
            { key: "ANSI" },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   444
            { key: "STATE",           label:"State" },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   445
            { key: "TOTAL_POP",       label:"Total Population" },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   446
            { key: "LAND_AREA",       label:"Land Area" },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   447
            { key: "POP_PER_SQ_MILE", label:"Pop/Square Mile" }
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   448
        ],
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   449
        data: state_census_data.slice(0, 7), // truncated for the example
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   450
        scrollable: "x",
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   451
        width: "250px"
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   452
    });
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   453
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   454
    table.render('#scrolling-x');
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   455
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   456
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   457
    table = new Y.DataTable({
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   458
        caption: "X and Y axis scrolling table",
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   459
        columns: [
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   460
            { key: "ANSI" },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   461
            { key: "STATE",           label:"State" },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   462
            { key: "TOTAL_POP",       label:"Total Population" },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   463
            { key: "LAND_AREA",       label:"Land Area" },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   464
            { key: "POP_PER_SQ_MILE", label:"Pop/Square Mile" }
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   465
        ],
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   466
        data: state_census_data,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   467
        scrollable: true,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   468
        width: "300px",
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   469
        height: "150px"
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   470
    });
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   471
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   472
    table.render('#scrolling-xy');
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   473
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   474
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   475
    table = new Y.DataTable({
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   476
        caption: "100% width scrolling table",
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   477
        columns: [
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   478
            { key: "STATE",     label: "State" },
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   479
            { key: "TOTAL_POP", label: "Total Population" }
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   480
        ],
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   481
        data: state_census_data,
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   482
        scrollable: "y",
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   483
        height:"200px",
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   484
        width: "100%"
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   485
    });
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   486
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   487
    table.render('#scrolling-100pct');
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   488
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   489
});
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   490
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   491
</script>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   492
</div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   493
            </div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   494
        </div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   495
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   496
        <div class="yui3-u-1-4">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   497
            <div class="sidebar">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   498
                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   499
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   500
                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   501
                    <div class="sidebox">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   502
                        <div class="hd">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   503
                            <h2 class="no-toc">Examples</h2>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   504
                        </div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   505
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   506
                        <div class="bd">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   507
                            <ul class="examples">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   508
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   509
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   510
                                        <li data-description="This example illustrates simple DataTable use cases.">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   511
                                            <a href="datatable-basic.html">Basic DataTable</a>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   512
                                        </li>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   513
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   514
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   515
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   516
                                        <li data-description="DataTable loaded with JSON data from a remote webservice via DataSource.Get">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   517
                                            <a href="datatable-dsget.html">DataTable + DataSource.Get + JSON Data</a>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   518
                                        </li>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   519
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   520
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   521
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   522
                                        <li data-description="DataTable loaded with XML data from a remote webservice via DataSource.IO.">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   523
                                            <a href="datatable-dsio.html">DataTable + DataSource.IO + XML Data</a>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   524
                                        </li>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   525
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   526
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   527
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   528
                                        <li data-description="Custom format data for display.">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   529
                                            <a href="datatable-formatting.html">Formatting Row Data for Display</a>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   530
                                        </li>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   531
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   532
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   533
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   534
                                        <li data-description="DataTable with nested column headers.">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   535
                                            <a href="datatable-nestedcols.html">Nested Column Headers</a>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   536
                                        </li>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   537
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   538
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   539
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   540
                                        <li data-description="DataTable with column sorting.">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   541
                                            <a href="datatable-sort.html">Column Sorting</a>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   542
                                        </li>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   543
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   544
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   545
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   546
                                        <li data-description="DataTable with vertical and/or horizontal scrolling rows.">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   547
                                            <a href="datatable-scroll.html">Scrolling DataTable</a>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   548
                                        </li>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   549
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   550
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   551
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   552
                                        <li data-description="Using DataTable&#x27;s recordType attribute to create calculated, sortable columns.">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   553
                                            <a href="datatable-recordtype.html">Sortable generated columns</a>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   554
                                        </li>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   555
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   556
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   557
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   558
                                        <li data-description="Populating one DataTable from details in the data of another.">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   559
                                            <a href="datatable-masterdetail.html">Master and detail tables</a>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   560
                                        </li>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   561
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   562
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   563
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   564
                                        <li data-description="Checkbox column that retains checked state when sorting.">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   565
                                            <a href="datatable-chkboxselect.html">Checkbox select column</a>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   566
                                        </li>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   567
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   568
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   569
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   570
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   571
                            </ul>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   572
                        </div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   573
                    </div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   574
                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   575
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   576
                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   577
                    <div class="sidebox">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   578
                        <div class="hd">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   579
                            <h2 class="no-toc">Examples That Use This Component</h2>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   580
                        </div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   581
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   582
                        <div class="bd">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   583
                            <ul class="examples">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   584
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   585
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   586
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   587
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   588
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   589
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   590
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   591
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   592
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   593
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   594
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   595
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   596
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   597
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   598
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   599
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   600
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   601
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   602
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   603
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   604
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   605
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   606
                                        <li data-description="Shows how to instantiate multiple Panel instances, and use nested modality to interact with a Datatable.">
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   607
                                            <a href="../panel/panel-form.html">Creating a Modal Form</a>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   608
                                        </li>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   609
                                    
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   610
                                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   611
                            </ul>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   612
                        </div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   613
                    </div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   614
                
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   615
            </div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   616
        </div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   617
    </div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   618
</div>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   619
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   620
<script src="../assets/vendor/prettify/prettify-min.js"></script>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   621
<script>prettyPrint();</script>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   622
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   623
<script>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   624
YUI.Env.Tests = {
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   625
    examples: [],
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   626
    project: '../assets',
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   627
    assets: '../assets/datatable',
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   628
    name: 'datatable-scroll',
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   629
    title: 'Scrolling DataTable',
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   630
    newWindow: '',
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   631
    auto:  false 
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   632
};
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   633
YUI.Env.Tests.examples.push('datatable-basic');
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   634
YUI.Env.Tests.examples.push('datatable-dsget');
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   635
YUI.Env.Tests.examples.push('datatable-dsio');
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   636
YUI.Env.Tests.examples.push('datatable-formatting');
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   637
YUI.Env.Tests.examples.push('datatable-nestedcols');
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   638
YUI.Env.Tests.examples.push('datatable-sort');
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   639
YUI.Env.Tests.examples.push('datatable-scroll');
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   640
YUI.Env.Tests.examples.push('datatable-recordtype');
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   641
YUI.Env.Tests.examples.push('datatable-masterdetail');
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   642
YUI.Env.Tests.examples.push('datatable-chkboxselect');
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   643
YUI.Env.Tests.examples.push('panel-form');
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   644
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   645
</script>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   646
<script src="../assets/yui/test-runner.js"></script>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   647
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   648
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   649
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   650
</body>
89ef5ed3c48b Upgrades to yui 3.10.3
gibus
parents:
diff changeset
   651
</html>