Almost correct, but with one major difference: buttons are created and attached in the constructor of the Cockpit component.
Almost correct, but with one major difference: buttons are created and attached in the constructor of the Cockpit component.