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

Method onMenuSelected

tools/mcsim/main.js:717–720  ·  view source on GitHub ↗
(row, index)

Source from the content-addressed store, hash-verified

715 this.changeState(container, active ? 1 : 0);
716 }
717 onMenuSelected(row, index) {
718 if (index >= 0)
719 model.onSelectDevice(application, this.data.items[index].value);
720 }
721 onTap(container) {
722 const devices = model.devices;
723 if (devices.length) {

Callers

nothing calls this directly

Calls 1

onSelectDeviceMethod · 0.80

Tested by

no test coverage detected