processFCPGridButtonPressed method

void processFCPGridButtonPressed(
  1. String elementId
)

Implementation

void processFCPGridButtonPressed(String elementId) {
  CPGridButton? gridButton;
  l1:
  for (var t in templateHistory) {
    if (t.runtimeType.toString() == "CPGridTemplate") {
      for (var b in t.buttons) {
        if (b.uniqueId == elementId) {
          gridButton = b;
          break l1;
        }
      }
    }
  }
  if (gridButton != null) gridButton.onPress();
}