|
38 | 38 | multi-sort
|
39 | 39 | body-text-direction="left"
|
40 | 40 | header-text-direction="left"
|
41 |
| - :filter-options="filterOptions" |
42 | 41 | click-event-type="double"
|
43 | 42 | @select-row="showItem"
|
44 | 43 | @deselect-row="deselectRow"
|
45 | 44 | @update-page-items="updateItems"
|
46 | 45 | @update-total-items="updateTotalItems"
|
47 | 46 | show-index-symbol="$"
|
48 | 47 | >
|
49 |
| - <template #customize-headers> |
| 48 | + <!-- <template #customize-headers> |
50 | 49 | <thead class="my-static-header">
|
51 | 50 | <tr>
|
52 | 51 | <th colspan="3" rowspan="2"></th>
|
|
64 | 63 | <th>country</th>
|
65 | 64 | </tr>
|
66 | 65 | </thead>
|
67 |
| - </template> |
| 66 | + </template> --> |
68 | 67 | <template #expand="item">
|
69 | 68 | <div style="padding: 15px">
|
70 | 69 | {{ item.name }} won championships
|
@@ -166,25 +165,25 @@ const updateTotalItems = (items: Item[]) => {
|
166 | 165 | console.log(JSON.stringify(items));
|
167 | 166 | };
|
168 | 167 |
|
169 |
| -// const items = ref<Item[]>([ |
170 |
| -// { name: "Stephen Curry", firstName: "GSW", number: 30, position: 'G', indicator: {"height": '6-2', "weight": 185}, lastAttended: "Davidson", country: "USA"}, |
171 |
| -// { name: "Kevin Durant", firstName: "BKN", number: 7, position: 'F', indicator: {"height": '6-10', "weight": 240}, lastAttended: "Texas-Austin", country: "USA"}, |
172 |
| -// { name: "Lebron James", firstName: "LAL", number: 7, position: 'F', indicator: {"height": '6-9', "weight": 185}, lastAttended: "St. Vincent-St. Mary HS (OH)", country: "USA"}, |
173 |
| -// { name: "Giannis Antetokounmpo", firstName: "MIL", number: 34, position: 'F', indicator: {"height": '6-11', "weight": 242}, lastAttended: "Filathlitikos", country: "Greece"}, |
174 |
| -// { name: "HC", firstName: "MIL", number: 34, position: 'F', indicator: {"height": '6-11', "weight": 243}, lastAttended: "Filathlitikos", country: "Greece"}, |
175 |
| -// { name: "Stephen Curry", firstName: "GSW", number: 30, position: 'G', indicator: {"height": '6-2', "weight": 185}, lastAttended: "Davidson", country: "USA"}, |
176 |
| -// { name: "Kevin Durant", firstName: "BKN", number: 7, position: 'F', indicator: {"height": '6-10', "weight": 240}, lastAttended: "Texas-Austin", country: "USA"}, |
177 |
| -// { name: "Lebron James", firstName: "LAL", number: 7, position: 'F', indicator: {"height": '6-9', "weight": 185}, lastAttended: "St. Vincent-St. Mary HS (OH)", country: "USA"}, |
178 |
| -// { name: "Giannis Antetokounmpo", firstName: "MIL", number: 34, position: 'F', indicator: {"height": '6-11', "weight": 242}, lastAttended: "Filathlitikos", country: "Greece"}, |
179 |
| -// { name: "HC", firstName: "MIL", number: 34, position: 'F', indicator: {"height": '6-11', "weight": 243}, lastAttended: "Filathlitikos", country: "Greece"}, |
180 |
| -// { name: "Stephen Curry", firstName: "GSW", number: 30, position: 'G', indicator: {"height": '6-2', "weight": 185}, lastAttended: "Davidson", country: "USA"}, |
181 |
| -// { name: "Kevin Durant", firstName: "BKN", number: 7, position: 'F', indicator: {"height": '6-10', "weight": 240}, lastAttended: "Texas-Austin", country: "USA"}, |
182 |
| -// { name: "Lebron James", firstName: "LAL", number: 7, position: 'F', indicator: {"height": '6-9', "weight": 185}, lastAttended: "St. Vincent-St. Mary HS (OH)", country: "USA"}, |
183 |
| -// { name: "Giannis Antetokounmpo", firstName: "MIL", number: 34, position: 'F', indicator: {"height": '6-11', "weight": 242}, lastAttended: "Filathlitikos", country: "Greece"}, |
184 |
| -// { name: "HC", firstName: "MIL", number: 34, position: 'F', indicator: {"height": '6-11', "weight": 243}, lastAttended: "Filathlitikos", country: "Greece"}, |
185 |
| -// ]); |
186 |
| -
|
187 |
| -const items = ref<Item[]>(mockClientItems()); |
| 168 | +const items = ref<Item[]>([ |
| 169 | + { name: "Stephen Curry", firstName: "GSW", number: 30, position: 'G', indicator: {"height": '6-2', "weight": 185}, lastAttended: "Davidson", country: "USA"}, |
| 170 | + { name: "Kevin Durant", firstName: "BKN", number: 7, position: 'F', indicator: {"height": '6-10', "weight": 240}, lastAttended: "Texas-Austin", country: "USA"}, |
| 171 | + { name: "Lebron James", firstName: "LAL", number: 7, position: 'F', indicator: {"height": '6-9', "weight": 185}, lastAttended: "St. Vincent-St. Mary HS (OH)", country: "USA"}, |
| 172 | + { name: "Giannis Antetokounmpo", firstName: "MIL", number: 34, position: 'F', indicator: {"height": '6-11', "weight": 242}, lastAttended: "Filathlitikos", country: "Greece"}, |
| 173 | + { name: "HC", firstName: "MIL", number: 34, position: 'F', indicator: {"height": '6-11', "weight": 243}, lastAttended: "Filathlitikos", country: "Greece"}, |
| 174 | + { name: "Stephen Curry", firstName: "GSW", number: 30, position: 'G', indicator: {"height": '6-2', "weight": 185}, lastAttended: "Davidson", country: "USA"}, |
| 175 | + { name: "Kevin Durant", firstName: "BKN", number: 7, position: 'F', indicator: {"height": '6-10', "weight": 240}, lastAttended: "Texas-Austin", country: "USA"}, |
| 176 | + { name: "Lebron James", firstName: "LAL", number: 7, position: 'F', indicator: {"height": '6-9', "weight": 185}, lastAttended: "St. Vincent-St. Mary HS (OH)", country: "USA"}, |
| 177 | + { name: "Giannis Antetokounmpo", firstName: "MIL", number: 34, position: 'F', indicator: {"height": '6-11', "weight": 242}, lastAttended: "Filathlitikos", country: "Greece"}, |
| 178 | + { name: "HC", firstName: "MIL", number: 34, position: 'F', indicator: {"height": '6-11', "weight": 243}, lastAttended: "Filathlitikos", country: "Greece"}, |
| 179 | + { name: "Stephen Curry", firstName: "GSW", number: 30, position: 'G', indicator: {"height": '6-2', "weight": 185}, lastAttended: "Davidson", country: "USA"}, |
| 180 | + { name: "Kevin Durant", firstName: "BKN", number: 7, position: 'F', indicator: {"height": '6-10', "weight": 240}, lastAttended: "Texas-Austin", country: "USA"}, |
| 181 | + { name: "Lebron James", firstName: "LAL", number: 7, position: 'F', indicator: {"height": '6-9', "weight": 185}, lastAttended: "St. Vincent-St. Mary HS (OH)", country: "USA"}, |
| 182 | + { name: "Giannis Antetokounmpo", firstName: "MIL", number: 34, position: 'F', indicator: {"height": '6-11', "weight": 242}, lastAttended: "Filathlitikos", country: "Greece"}, |
| 183 | + { name: "HC", firstName: "MIL", number: 34, position: 'F', indicator: {"height": '6-11', "weight": 243}, lastAttended: "Filathlitikos", country: "Greece"}, |
| 184 | +]); |
| 185 | +
|
| 186 | +// const items = ref<Item[]>(mockClientItems()); |
188 | 187 |
|
189 | 188 | // const headers: Header[] = [
|
190 | 189 | // { text: 'Name', value: 'name'},
|
@@ -220,15 +219,15 @@ const favouriteSportCriteria = ref('all');
|
220 | 219 | const showNameFilter = ref(false);
|
221 | 220 | const nameCriteria = ref('');
|
222 | 221 |
|
223 |
| -const filterOptions = computed((): FilterOption[] => { |
224 |
| - const filterOptionsArray: FilterOption[] = []; |
225 |
| - filterOptionsArray.push({ |
226 |
| - field: 'name', |
227 |
| - criteria: ['name-1', 'name-2'], |
228 |
| - comparison: 'in', |
229 |
| - }); |
230 |
| - return filterOptionsArray; |
231 |
| -}); |
| 222 | +// const filterOptions = computed((): FilterOption[] => { |
| 223 | +// const filterOptionsArray: FilterOption[] = []; |
| 224 | +// filterOptionsArray.push({ |
| 225 | +// field: 'name', |
| 226 | +// criteria: ['name-1', 'name-2'], |
| 227 | +// comparison: 'in', |
| 228 | +// }); |
| 229 | +// return filterOptionsArray; |
| 230 | +// }); |
232 | 231 |
|
233 | 232 | const bodyRowClassNameFunction: BodyRowClassNameFunction = (item: Item, index: number): string => (index === 0 ? 'first-row test-row' : '');
|
234 | 233 | const bodyExpandRowClassNameFunction: BodyRowClassNameFunction = (item: Item, index: number): string => 'expand-row';
|
|
0 commit comments