Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <html>
<head>
    <title>Custom Table Demo</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width" />
    <script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
    <script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.15/angular.min.js"></script>
    <script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.15/angular-animate.min.js"></script>
    <script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.15/angular-loader.min.js"></script>
    <script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.15/angular-sanitize.min.js"></script>
    <script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.15/angular-cookies.min.js"></script>
    <script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.15/angular-touch.min.js"></script>
    <script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.15/angular-resource.min.js"></script>
    <script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.14.3/ui-bootstrap.min.js"></script>
    <script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.14.3/ui-bootstrap-tpls.min.js"></script>
    <script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.2.13/angular-ui-router.min.js"></script>
    <script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui/0.4.0/angular-ui-ieshiv.min.js"></script>
    <script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui/0.4.0/angular-ui.min.js"></script>
    <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="style.css">
    <script type='text/javascript' src="script.js"></script>
    <script type='text/javascript' src="https://rawgit.com/long2know/angular-directives-general/master/src/customTable.js"></script>
    <script type='text/javascript' src="https://rawgit.com/long2know/angular-directives-general/master/src/triStateCheckbox.js"></script>
    <script type='text/javascript' src="https://rawgit.com/long2know/angular-directives-general/master/src/multiselect.js"></script>
    <script type='text/javascript' src="https://rawgit.com/long2know/angular-services-general/master/src/watchCountService.js"></script>
</head>

<body class="flex-layout" ng-app="myApp">
    <div class="container-fluid row" ng-controller="myCtrl as vm">
        <div class="buttons">
            <button class="btn btn-default" ng-click="vm.addItems(100)">Add 100 Items</button>
            <button class="btn btn-default" ng-click="vm.addItems(1000)">Add 1000 Items</button>
            <button class="btn btn-default" ng-click="vm.removeItems(100)">Remove 100 Items</button>
            <button class="btn btn-default" ng-click="vm.removeItems(1000)">Remove 1000 Items</button>
            <button class="btn btn-default" ng-click="vm.toggleTable1()">Toggle Repeater Table</button>
            <button class="btn btn-default" ng-click="vm.toggleTable2()">Toggle Non-Repeater Table</button>
            <span style="font-weight:bold">$Watchers: </span>
            <span style="font-weight:bold" ng-bind="vm.watchCount" />
        </div>

        <div>
            <h3>
                <span>Table with Repeater</span>
                <span>Row Count</span>
                <span ng-bind="vm.table1Options.records.length"></span>
            </h3>
        </div>

        <div class="flex-scroll-content table1-container" ng-if="vm.isTable1Visible">
            <custom-table options="vm.table1Options"></custom-table>
        </div>

        <br />

        <div>
            <h3>
                <span>Table Rendered Directly to DOM</span>
                <span>Row Count</span>
                <span ng-bind="vm.table2Options.records.length"></span>
            </h3>
        </div>

        <div class="flex-scroll-content table2-container" ng-if="vm.isTable2Visible">
            <custom-table options="vm.table2Options"></custom-table>
        </div>
    </div>
</body>
</html>
              
            
!

CSS

              
                html, body, .container-fluid {
    height: 100%;
}

body {
    -moz-box-flex: 2;
    -moz-box-flex: 2;
    -webkit-box-flex: 2;
    -ms-flex: 2;
    flex: 2;
}

.row {
    margin-left: 15px;
    margin-right:15px;
}

.buttons {
    margin-bottom:10px;
    margin-top:10px;
}

.btn-default {
    background-color: #F7F7F7;
    border: 1px solid #eaeaea;
}

body, .container-fluid, .flex-layout
{
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -webkit-box-direction: normal;
    -moz-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

.flex-scroll-content {
    overflow-y: auto;
    /*for IE10*/
    -ms-flex-shrink: 1;
    flex-shrink: 1;
    min-height: 85px;
    -moz-box-flex: 2;
    -moz-box-flex: 2;
    -webkit-box-flex: 2;
    -ms-flex: 2;
    flex: 2;
    margin-bottom:10px;
    /*border: solid 1px;*/
    /*padding:5px;*/
}

multiselect {
    display: block;
}

    multiselect > .btn-group:not(.single),
    customselect > .btn-group:not(.single) {
        min-width: 150px;
    }

    multiselect > .btn-group.single,
    customselect > .btn-group.single {
        min-width: 75px;
    }

    multiselect > .btn-group,
    .modal-form customselect > .btn-group {
        width: 100%;
    }

    multiselect .btn,
    customselect .btn {
        width: 100%;
        background-color: #FFF;
    }

        multiselect .btn.has-error,
        customselect.btn.has-error {
            border: 1px solid #a94442 !important;
            color: #db524b;
        }

.multi-select-popup {
    max-height: 400px;
    min-width: 200px;
    overflow-y: auto;
}

.custom-select-popup {
    max-height: 400px;
    min-width: 350px;
    overflow-y: auto;
    overflow-x: hidden;
}

    .custom-select-popup > li > .form-group > input {
        max-width: none;
        width: 100%;
    }

    .custom-select-popup > li > .form-group > ul {
        max-width: 330px;
    }

    .multi-select-popup .filter,
    .custom-select-popup .filter {
        width: 100%;
    }

        .multi-select-popup .filter > input,
        .custom-select-popup .filter > input {
            width: 99%;
            max-width: none;
        }

        .multi-select-popup .filter .glyphicon,
        .custom-select-popup .filter .glyphicon {
            cursor: pointer;
            pointer-events: all;
        }

.multi-select-popup,
.custom-select-popup {
    box-sizing: border-box;
    padding: 2px;
}

multiselect > .btn-group > button,
customselect > .btn-group > button {
    padding-right: 20px;
}

    multiselect > .btn-group > button > .caret,
    customselect > .btn-group > button > .caret {
        right: 5px;
        top: 45%;
        position: absolute;
    }

multiselect > .btn-group:not(.dropup) > button > .caret,
customselect > .btn-group:not(.dropup) > button > .caret {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid black;
}

.multi-select-popup > li:not(.filter-container),
.custom-select-popup > li:not(.filter-container) {
    padding-right: 10px;
}

.multi-select-popup .filter-container input::-ms-clear,
.date-field::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

.multi-select-popup .filter-container input::-ms-reveal,
.date-field::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}

.multi-select-popup .filter-container input::-webkit-search-decoration,
.multi-select-popup .filter-container input::-webkit-search-cancel-button,
.multi-select-popup .filter-container input::-webkit-search-results-button,
.multi-select-popup .filter-container input::-webkit-search-results-decoration,
.date-field::-webkit-search-decoration,
.date-field::-webkit-search-cancel-button,
.date-field::-webkit-search-results-button,
.date-field::-webkit-search-results-decoration {
    display: none;
}

.multi-select-popup > li > a,
.custom-select-popup > li > a {
    padding: 3px 10px;
    cursor: pointer;
}

    .multi-select-popup > li > a i,
    .custom-select-popup > li > a i {
        margin-right: 4px;
    }

/*Add padding if pagination is preceeded by another element with pagniation class*/
.pagination ~ ul.pagination {
    padding-left: 10px !important;
}

.pagination {
    font-size: .8em;
    height: 2.8em;
    padding-bottom: 0;
    margin-bottom: 0;
}

    .pagination multiselect > .btn-group > button {
        font-size: 1.0em;
    }

.multiselect-label ~ multiselect {
    display: inline-block;
}

.pagination multiselect > .btn-group > button {
    font-size: 1.0em;
}

.multiselect-label ~ multiselect {
    display: inline-block;
}

/* TABLE STYLING */
.custom-table {
    margin: 0 0 25px;
    background-color: #f9f9f9;
    border: 1px solid #D7D7D7;
    width: 100%;
}

.custom-table.sticky-header {
    margin: 0;
}

    .custom-table th {
        background-color: #F7F7F7;
        border-bottom: 1px solid #D7D7D7;
        border-left: 1px solid #D7D7D7;
        color: #5C5C5C;
        font-size: 13px;
        height: 40px;
        line-height: 40px;
        text-align: left;
        white-space: nowrap;
    }

    .custom-table .header-check {
        padding-left: 17px;
        padding-top: 4px;
        min-width: 50px;
    }

    .custom-table .toggle-all {
        width: 15px;
    }

    .custom-table .th-checkbox, .custom-table .td-checkbox {
        width: 20px;
    }

    .custom-table .btn-default {
        border: none;
    }

    .custom-table > tbody > tr:nth-child(odd) {
        background: none;
    }

    .custom-table > tbody > tr:nth-child(even) {
        background-color: #F7F7F7;
    }

    .custom-table > tbody > tr:hover {
        background-color: #f5f5f5;
    }

    .custom-table tbody td, table.no-border tbody td {
        height: 50px;
        font-size: 11px;
    }

        .custom-table tbody td .center, table.no-border tbody td .center {
            text-align: center;
        }

    .custom-table tbody .td-checkbox {
        padding: 0;
    }

        .custom-table tbody .td-checkbox input {
            margin-left: 3px;
            width: 15px;
        }

.custom-table thead th span {
    padding-right: 20px;
}

.custom-table tbody td {
    border-right: 1px solid #d7d7d7;
    padding: 0 4px 0 7px;
}

.custom-table {
    background-color: white;
}

    .custom-table thead th {
        padding-left: 7px;
    }

        .custom-table thead th:first-child {
            padding: 2px 2px 0 3px;
        }

.footer .custom-table {
    margin-bottom: 5px;
}

table thead .sorting,
table thead .sorting_asc,
table thead .sorting_desc,
table thead .sorting_asc_disabled,
table thead .sorting_desc_disabled {
    background-repeat: no-repeat;
    background-position: center right;
}

table thead .sorting {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MTRDMDM5NjkyMkMxMTFFMUExRjFBREFENUIyQTUzOEMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MTRDMDM5NkEyMkMxMTFFMUExRjFBREFENUIyQ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1IE1hY2ludG9zaCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjAyODAxMTc0MDcyMDY4MTFCMzgyRjZDNUZFRjBFMkM0IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjAxODAxMTc0MDcyMDY4MTFCMzgyRjZDNUZFRjBFMkM0Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+1fsfwAAAAJdJREFUeNpi/P//PwO1ABMDFcGoYaOG0cMwFmyC1Y33IoHUAiD+h8MBGa31SvOJddk6IN4PxBxY8FEgXkO0N4G2/gRSLUD8GU3qPRA3A+U/kxpmIBege2U9EB/ApYERX6kBDDtlILUDiFWA+AkQuwNddY2s2ARqvAukJgDxbyCehM8gnLGJBmYDsSoQTyWkkHHQFo4AAQYAAA0piq4hbqwAAAAASUVORK5CYII=);
    cursor: pointer;
}

table thead .sorting_asc_disabled {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOc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GRjUyMkMxMTFFMUExRjFBREFENUIyQTUzOEMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoxNEMwMzk2QjIyQzExMUUxQTFGMUFEQUQ1QjJBNTM4QyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDoxNEMwMzk2QzIyQzExMUUxQTFGMUFEQUQ1QjJBNTM4QyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pnt2WfgAAACJSURBVHjaYvz//z8DtQATAxXBqGGjhtHDMBZsgnfv3o0EUguA+B8OB2QoKyvPJ9Zl64B4PxBzYMFHgXgNKd78CcQtQPwZTfw9EDdjEScYZiAXoHtlPRAfICcCQMXJJCC+A+U/AeJeqDhZsXkXiCcA8W+owddIjk00MBuIVYF4KiGFjIO2cAQIMAAzGSDTlIC38gAAAABJRU5ErkJggg==);
}

td.is-negative {
    color: #FFFFFF;
    background-color: #B1504A !important;
}

.is-error,
.is-error-add.is-error-add-active {
    color: #FFFFFF;
    background-color: #a94442;
}

    .is-error a, .is-error-add.is-error-add-active a {
        color: #FFFFFF;
    }

.is-error-remove.is-error-remove-active {
    background-color: #FFFFFF !important;
}

.is-error-add, .is-error-remove {
    -webkit-transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
    -moz-transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
    -o-transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
    transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
}

.table-striped > tbody > tr.is-error:nth-of-type(odd),
.table-striped > tbody > tr.is-error-add.is-error-add-active:nth-of-type(odd) {
    color: #FFFFFF;
    background-color: #a94442;
}

.table-striped > tbody > tr.is-error:nth-of-type(even),
.table-striped > tbody > tr.is-error-add.is-error-add-active:nth-of-type(even) {
    color: #FFFFFF;
    background-color: #b15654;
}

.table-striped.table-bordered > tbody > tr.is-error:nth-of-type(odd) td {
    border-bottom: 1px solid #dc7675;
}

.table-striped.table-bordered > tbody > tr.is-error:nth-of-type(even) td {
    border-bottom: 1px solid #dc7675;
}

.table-hover > tbody > tr.is-error:hover {
    background-color: #dc7675;
}

.is-summary,
.is-summary-add.is-summary-add-active {
    color: black;
    background-color: #bfccdd;
}

    .is-summary a, .is-summary-add.is-summary-add-active a {
        color: black;
    }

.is-summary-remove.is-summary-remove-active {
    background-color: #FFFFFF !important;
}

.is-summary-add, .is-summary-remove {
    -webkit-transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
    -moz-transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
    -o-transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
    transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
}

.table-striped > tbody > tr.is-summary:nth-of-type(odd),
.table-striped > tbody > tr.is-summary-add.is-summary-add-active:nth-of-type(odd) {
    color: black;
    background-color: #a7b4c5;
}

.table-striped > tbody > tr.is-summary:nth-of-type(even),
.table-striped > tbody > tr.is-summary-add.is-summary-add-active:nth-of-type(even) {
    color: black;
    background-color: #bfccdd;
}

.table-striped.table-bordered > tbody > tr.is-summary:nth-of-type(odd) td {
    border-bottom: 1px solid #99a4b2;
}

.table-striped.table-bordered > tbody > tr.is-summary:nth-of-type(even) td {
    border-bottom: 1px solid #99a4b2;
}

.table-hover > tbody > tr.is-summary:hover {
    background-color: #99a4b2;
}
              
            
!

JS

              
                (function () {
    angular.module('myApp.controllers', []);

    var myApp = angular.module('myApp', [
        'long2know',
        'myApp.controllers',
        'ngSanitize',
        'ui.bootstrap',
        'ui.router',
        'ui']);

    var myController = function ($scope, $timeout, $animate, $log, watchCountService) {
        var vm = this,
            addItems = function (count) {
                for (var i = 0; i < count; i++) {
                    var suffix = vm.table1Options.records.length.toString();
                    var money = (Math.random() * 1000).toFixed(2);
                    var date = new Date();
                    date.setDate(date.getDate() + vm.table1Options.records.length);
                    vm.table1Options.records.push({
                        id: suffix, column2: "Column2_" + suffix, column3: "Column3_" + suffix, column4: "Column4_" + suffix, column5: "Column5_" + suffix,
                        column6: money, column7: "Column7_" + suffix, column8: date
                    });
                    vm.table2Options.records.push({
                        id: suffix, column2: "Column2_" + suffix, column3: "Column3_" + suffix, column4: "Column4_" + suffix, column5: "Column5_" + suffix,
                        column6: money, column7: "Column7_" + suffix, column8: date
                    });
                }
            },
            init = function () {
                var columns = [
                    { name: 'Column 1', value: 'column1', binding: "r.column3 + \" / \" + r.column4", style: {}, isWatched: true, isAnchor: false, isComputed: true, srefBinding: 'state expression here' },
                    { name: 'Column 2', value: 'column2', binding: 'column2', isWatched: true, style: {} },
                    { name: 'Column 3', value: 'column3', binding: 'column3', isWatechhed: true, style: {} },
                    { name: 'Column 4', value: 'column4', binding: 'column4', isWatched: true, style: {} },
                    { name: 'Column 5', value: 'column5', binding: 'column5', style: {} },
                    { name: 'Column 6', value: 'column6', binding: 'column6', filter: "currency", isWatched: true, style: {} },
                    { name: 'Column 7', value: 'column7', binding: 'column7', style: {} },
                    { name: 'Column 8', value: 'column8', binding: 'column8', filter: "date:\"MM/dd/yyyy\"", style: {} }
                ];

                vm.watchCount = 0;
                vm.isTable1Visible = false;
                vm.isTable2Visible = false;

                vm.table1Options = {
                    records: [],
                    updatedRecords: [],
                    columnDefns: columns,
                    rowDefns: {
                        computedClass: "{ 'is-error': r.isError, 'is-summary': r.isSummary }"
                    },
                    config: {
                        sortBy: "column1",
                        sortDirection: "asc",
                        trackBy: "id",
                        pageSize: 50,
                        pageNumber: 1,
                        totalCount: 0,
                        totalPages: 0,
                        maxSize: 10,
                        useRepeat: true,
                        showSelectCheckbox: true,
                        showSelectAll: true,
                        showSort: true,
                        clientSort: true,
                        clientPaging: true,
                        displayPager: true,
                        displayPageSize: true,
                        stickyHeader: true,
                        stickyHeaderOffset: 0,
                        stickyContainer: '.table1-container'
                    },
                    callbacks: {
                        sortHeaderClicked: function (data) { },
                        pageChanged: function (data) { },
                        pageSizeChanged: function (data) { },
                        checkboxClicked: function (data) {
                            data.item.isError = data.item.isSelected;
                        },
                        masterClicked: function () {
                            var updatedRecords = [];
                            angular.forEach(vm.table1Options.pagedData, function (item) {
                                item.isError = item.isSelected;
                                updatedRecords.push(item);
                            });
                            $timeout(function () {
                                vm.table1Options.updatedRecords = updatedRecords;
                            }, 0);
                        },
                    }
                };

                vm.table2Options = {
                    records: [],
                    updatedRecords: [],
                    columnDefns: columns,
                    rowDefns: {
                        computedClass: "{ 'is-error': r.isError, 'is-summary': r.isSummary }"
                    },
                    config: {
                        sortBy: "column1",
                        sortDirection: "asc",
                        trackBy: "id",
                        pageSize: 20,
                        pageNumber: 1,
                        totalCount: 0,
                        totalPages: 0,
                        maxSize: 10,
                        useRepeat: false,
                        showSelectCheckbox: true,
                        showSelectAll: true,
                        showSort: true,
                        clientSort: true,
                        clientPaging: false,
                        stickyHeader: true,
                        stickyHeaderOffset: 0,
                        stickyContainer: '.table2-container'
                    },
                    callbacks: {
                        sortHeaderClicked: function (data) { },
                        pageChanged: function (data) { },
                        pageSizeChanged: function (data) { },
                        checkboxClicked: function (data) {
                            data.item.isSummary = data.item.isSelected;
                            var updatedRecords = [data.item];
                            $timeout(function () {
                                vm.table2Options.updatedRecords = updatedRecords;
                            }, 0);
                        },
                        masterClicked: function () {
                            var updatedRecords = [];
                            angular.forEach(vm.table2Options.pagedData, function (item) {
                                item.isSummary = item.isSelected;
                                updatedRecords.push(item);
                            });
                            $timeout(function () {
                                vm.table2Options.updatedRecords = updatedRecords;
                            }, 0);
                        },
                    }
                };

                $scope.$watch(
                    function watchCountExpression() {
                        return (watchCountService.getWatchCount());
                    },
                    function handleWatchCountChange(newValue) {
                        vm.watchCount = newValue;
                    });

                $scope.$on('tableSortHeaderClicked', function (event, data) {

                });

                addItems(100);
                vm.toggleTable1();
                vm.toggleTable2();
            };

        vm.addItems = function (numItems) {
            addItems(numItems);
        };

        vm.removeItems = function (numItems) {
            if (vm.table1Options.records.length >= numItems) {
                $timeout(function () {
                    vm.table1Options.records.splice(-1 * numItems, numItems);
                    vm.table2Options.records.splice(-1 * numItems, numItems);
                    $scope.$apply();
                }, 0);
            }
        };

        vm.toggleTable1 = function () {
            $timeout(function () {
                vm.isTable1Visible = !vm.isTable1Visible; $scope.$apply();
            }, 1);
        };

        vm.toggleTable2 = function () {
            $timeout(function () {
                vm.isTable2Visible = !vm.isTable2Visible;
            }, 1);
        };

        init();
    };

    myController.$inject = ['$scope', '$timeout', '$animate', '$log', 'watchCountService'];
    angular.module('myApp.controllers')
        .controller('myCtrl', myController);

    myApp.config(['$modalProvider', '$locationProvider',
        function ($modalProvider, $locationProvider) {
            $modalProvider.options = { dialogFade: true, backdrop: 'static', keyboard: false };
            $locationProvider.html5Mode(false);
        }]);

    myApp.run(['$log', function ($log) { $log.log("Start."); }]);
})()
              
            
!
999px

Console