MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / expand

Method expand

tools/xsbug/FilePane.js:153–171  ·  view source on GitHub ↗
(column, expandIt)

Source from the content-addressed store, hash-verified

151
152class 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 }

Callers 2

onCreateMethod · 0.95
onBreakpointsChangedMethod · 0.95

Calls 3

emptyMethod · 0.65
addMethod · 0.65
expandMethod · 0.45

Tested by

no test coverage detected