code: @Override
      public void onSelection(SelectionEvent<MaterialStep> event) {
          if (stepSkippingAllowed) {
              if (event.getSelectedItem().getState() == State.SUCCESS) {
                  goToStep(event.getSelectedItem());
              }
          }
      }
docs: Called when a step title is clicked.