(column, expandIt)
| 151 | |
| 152 | class BreakpointTableBehavior extends TableBehavior { |
| 153 | expand(column, expandIt) { |
| 154 | var data = this.data; |
| 155 | var header = column.first; |
| 156 | data.expanded = expandIt; |
| 157 | column.empty(1); |
| 158 | if (expandIt) { |
| 159 | header.behavior.expand(header, true); |
| 160 | for (let item of data.items) { |
| 161 | if (item.id & 2) |
| 162 | column.add(new FunctionBreakpointRow(item)); |
| 163 | else |
| 164 | column.add(new BreakpointRow(item)); |
| 165 | } |
| 166 | column.add(new BreakpointFooter(data)); |
| 167 | } |
| 168 | else { |
| 169 | header.behavior.expand(header, false); |
| 170 | } |
| 171 | } |
| 172 | hold(column) { |
| 173 | return BreakpointHeader(this.data, {left:0, right:0, top:0, height:column.first.height}); |
| 174 | } |
no test coverage detected