Translations:OOUI/OOjs primer/7/en

In the following example, the $1 method is used to connect an $2 event handler to a toggle button, which is defined in the example as well.