I want to create stand alone component means kind of widget I have some limitation I cannot use jquery widget library. I want to know what is the right way to bind events on component. for example I want to create some sort of button group If I use that button group anywhere in application it should have ability to accepts callback. where ever If I used this component it should work.I want to create stand alone component means ki