How to handle click context pad menu

I want to handle click task on contextPad.

var contextPad = viewer.get("contextPad");

//......

logic exend event click of contextPad. Help me.

Can you please give more context? What are you trying to achieve?