cables_dev/cables/src/core/core_port_select.js
import { SwitchPort } from "./core_port_switch.js";
class ValueSelectPort extends SwitchPort
{
setUiAttribs(newAttribs)
{
// never unhide valuePort when indexPort is linked
if (this.indexPort.isLinked())
{
for (const p in newAttribs)
{
if (p == "greyout" && !newAttribs[p]) newAttribs[p] = "true";
}
}
super.setUiAttribs(newAttribs);
}
}
export { ValueSelectPort };