MCPcopy Create free account
hub / github.com/CloudOrc/SolidUI / addViews

Method addViews

solidui-web/src/utils/ModelManager.ts:195–204  ·  view source on GitHub ↗
(views: SolidViewDataType[])

Source from the content-addressed store, hash-verified

193 }
194
195 public addViews(views: SolidViewDataType[]): void {
196 if (isNil(this.currentPage)) {
197 return;
198 }
199 forEach(views, (item) => {
200 this.currentPage?.views.push(item);
201 this.viewMap.set(`${item.id}`, item);
202 this.views.push(item);
203 });
204 }
205
206 public setViews(views: SolidViewDataType[]): void {
207 if (isNil(this.currentPage)) {

Callers

nothing calls this directly

Calls 1

setMethod · 0.80

Tested by

no test coverage detected