added click as trigger and template support

I have added the attributes template and trigger (hover and click supported).