@iamproperty/components 2.5.1 → 2.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iamproperty/components",
3
- "version": "2.5.1",
3
+ "version": "2.6.2",
4
4
  "private": false,
5
5
  "description": "Component library for iamproperty",
6
6
  "author": {
@@ -15,6 +15,7 @@
15
15
  | show | number | - | Limits the number of results shown and will create pagination controls. |
16
16
  | page | number | - | Starting page for the pagination. |
17
17
  | reorder | bool | - | Create an order column and allow for the table rows to be reordered |
18
+ | headingclass | string | - | Add a class to the table row within the thead, used to add a background or change test colour. |
18
19
 
19
20
  ### Class modifiers
20
21
 
@@ -2,7 +2,7 @@
2
2
  <div class="table__wrapper" ref="wrapper" :data-sortby="sortby" :data-sort="sort" :data-show="show" :data-page="page" :data-reorder="reorder">
3
3
  <table>
4
4
  <thead v-if="fields">
5
- <tr>
5
+ <tr :class="headingclass">
6
6
  <th v-for="(field) in fields" :key="field.key" :data-sortable="field.sortable" :data-filterable="field.filterable">{{ cellHeading(field.key) }}</th>
7
7
  </tr>
8
8
  </thead>
@@ -43,6 +43,10 @@ export default {
43
43
  type: String,
44
44
  required: false
45
45
  },
46
+ headingclass: {
47
+ type: String,
48
+ required: false
49
+ },
46
50
  items: {
47
51
  type: Array,
48
52
  required: true