Tabs support onOpen() and onClose() methods.