Login Register

new widget

Why my _onClick function is never called by my widget ?

I created my own widget and I want to isolate any event that happends inside from outside. In order to achieve that I connected the onclick event to my _onClick function but it is never called.

This is my template:

<div class='dijitContentPane' dojoType="dijit.layout.ContentPane"
         dojoAttachPoint='containerNode' dojoAttachEvent='onclick:_onClick'
         style="border:solid; position:absolute; width:200px; top:${top}; left:${left};">

        <input dojoType="dijit.form.TextBox" class='dijitTextBox' value="test-test" >
        </input>
    </div>
</div>
Syndicate content