MCPcopy
hub / github.com/Comfy-Org/ComfyUI-Manager / renderSelected

Method renderSelected

comfyui_manager/js/model-manager.js:409–419  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

407 // ===========================================================================================
408
409 renderSelected() {
410 const selectedList = this.grid.getSelectedRows();
411 if (!selectedList.length) {
412 this.showSelection("");
413 this.selectedModels = [];
414 return;
415 }
416
417 this.selectedModels = selectedList;
418 this.showSelection(`<span>Selected <b>${selectedList.length}</b> models <button class="cmm-btn-install p-button p-component" mode="install">Install</button>`);
419 }
420
421 focusInstall(item) {
422 const cellNode = this.grid.getCellNode(item, "installed");

Callers 1

initGridMethod · 0.95

Calls 1

showSelectionMethod · 0.95

Tested by

no test coverage detected