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

Method setViews

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

Source from the content-addressed store, hash-verified

204 }
205
206 public setViews(views: SolidViewDataType[]): void {
207 if (isNil(this.currentPage)) {
208 return;
209 }
210 this.currentPage.views = [];
211 forEach(views, (item) => {
212 this.currentPage?.views.push(item);
213 this.viewMap.set(`${item.id}`, item);
214 this.views.push(item);
215 });
216 }
217
218 public removeView(id: string): void {
219 if (isNil(this.currentPage)) {

Callers 1

selectPageFunction · 0.80

Calls 1

setMethod · 0.80

Tested by

no test coverage detected