customParticipantMenuButtons & customToolbarButtons

Thank you for this feature. is there a documentation on how to use it? I mean how do we add click function to it? or any samples if someone has used it.

found it here