Merge "Added the pagination info at top of the table"
This commit is contained in:
@@ -21,6 +21,13 @@
|
||||
|
||||
<table class="table table-striped table-rsp table-detail">
|
||||
<thead>
|
||||
<!--
|
||||
This is where we display number of items and pagination controls in
|
||||
the header.
|
||||
-->
|
||||
<tr>
|
||||
<td hz-table-footer colspan="100" items="items"></td>
|
||||
</tr>
|
||||
<!--
|
||||
Table-column-headers:
|
||||
Set selectAll to True if you want to enable select all checkbox.
|
||||
|
||||
@@ -61,12 +61,12 @@
|
||||
it('has the correct number of column headers', function() {
|
||||
var $element = digestMarkup($scope, $compile, markup);
|
||||
expect($element).toBeDefined();
|
||||
expect($element.find('thead tr:eq(0) th').length).toBe(5);
|
||||
expect($element.find('thead tr:nth-child(2) th').length).toBe(5);
|
||||
});
|
||||
|
||||
it('displays selectAll checkbox when config selectAll set to True', function() {
|
||||
var $element = digestMarkup($scope, $compile, markup);
|
||||
expect($element.find('thead tr:eq(0) th:first input').attr(
|
||||
expect($element.find('thead tr:nth-child(2) th:first input').attr(
|
||||
'hz-select-all')).toBe('items');
|
||||
});
|
||||
|
||||
@@ -82,12 +82,12 @@
|
||||
]
|
||||
};
|
||||
var $element = digestMarkup($scope, $compile, markup);
|
||||
expect($element.find('thead tr:eq(0) th:first').hasClass('ng-hide')).toBe(true);
|
||||
expect($element.find('thead tr:nth-child(2) th:first').hasClass('ng-hide')).toBe(true);
|
||||
});
|
||||
|
||||
it('displays expander when config expand set to True', function() {
|
||||
var $element = digestMarkup($scope, $compile, markup);
|
||||
expect($element.find('thead tr:eq(0) th:eq(1)').hasClass('expander')).toBe(true);
|
||||
expect($element.find('thead tr:nth-child(2) th:eq(1)').hasClass('expander')).toBe(true);
|
||||
});
|
||||
|
||||
it('does not display expander when config expand set to False', function() {
|
||||
@@ -102,7 +102,7 @@
|
||||
]
|
||||
};
|
||||
var $element = digestMarkup($scope, $compile, markup);
|
||||
expect($element.find('thead tr:eq(0) th:eq(1)').hasClass('ng-hide')).toBe(true);
|
||||
expect($element.find('thead tr:nth-child(2) th:eq(1)').hasClass('ng-hide')).toBe(true);
|
||||
});
|
||||
|
||||
it('has the correct responsive priority classes', function() {
|
||||
|
||||
Reference in New Issue
Block a user