Hi Karol,
Thanks for using Syncfusion products.
We have checked the shared document link and the sample. In that document, code snippet toggle button element is missing. So, we will change the code snippet in the document and refresh the online link. We have modified your sample based on your requirement and attached the link.
Please let us know if you require further assistance on this.
Regards,
Gopi G.