| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2016 The LUCI Authors. All rights reserved. | 2 Copyright 2016 The LUCI Authors. All rights reserved. |
| 3 Use of this source code is governed under the Apache License, Version 2.0 | 3 Use of this source code is governed under the Apache License, Version 2.0 |
| 4 that can be found in the LICENSE file. | 4 that can be found in the LICENSE file. |
| 5 | 5 |
| 6 This file contains most of the logic needed to create a dynamic table. It is b
roken up into two | 6 This file contains most of the logic needed to create a dynamic table. It is b
roken up into two |
| 7 parts, a style dom-module called "dynamic-table-style" and a behavior called | 7 parts, a style dom-module called "dynamic-table-style" and a behavior called |
| 8 SwarmingBehaviors.DynamicTableBehavior. This behavior ties together filtering,
sorting and column | 8 SwarmingBehaviors.DynamicTableBehavior. This behavior ties together filtering,
sorting and column |
| 9 content. It also offers a few utilities to make creating the table easier. A c
lient of these two | 9 content. It also offers a few utilities to make creating the table easier. A c
lient of these two |
| 10 parts needs to create the templates to actually draw the <table>,<tr> and so o
n. See | 10 parts needs to create the templates to actually draw the <table>,<tr> and so o
n. See |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 _columns: { | 92 _columns: { |
| 93 type: Array, | 93 type: Array, |
| 94 }, | 94 }, |
| 95 | 95 |
| 96 _filter: { | 96 _filter: { |
| 97 type: Function, | 97 type: Function, |
| 98 }, | 98 }, |
| 99 | 99 |
| 100 _filteredSortedItems: { | 100 _filteredSortedItems: { |
| 101 type: Array, | 101 type: Array, |
| 102 computed: "_filterAndSort(_items,_filter.*,_sort.*)" | 102 computed: "_filterAndSort(_items.*,_filter.*,_sort.*)" |
| 103 }, | 103 }, |
| 104 | 104 |
| 105 _items: { | 105 _items: { |
| 106 type: Array, | 106 type: Array, |
| 107 }, | 107 }, |
| 108 | 108 |
| 109 _plainColumns: { | 109 _plainColumns: { |
| 110 type: Array, | 110 type: Array, |
| 111 computed: "_stripSpecial(_columns.*)", | 111 computed: "_stripSpecial(_columns.*)", |
| 112 }, | 112 }, |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 var pool = this._attribute(bot, "pool"); | 255 var pool = this._attribute(bot, "pool"); |
| 256 return pool.join(" | "); | 256 return pool.join(" | "); |
| 257 }, | 257 }, |
| 258 }; | 258 }; |
| 259 }, | 259 }, |
| 260 | 260 |
| 261 | 261 |
| 262 }]; | 262 }]; |
| 263 })(); | 263 })(); |
| 264 </script> | 264 </script> |
| OLD | NEW |