Hi Rohit,

I did not create custom controls with the JS API, so cannot post an example, sorry.

Best,
Florian