ibm mobilefirst - Can't find Dojo IconMenuItem callback example. (Defined by dojox/mobile/_ItemBase) -


i can't find dojo iconmenuitem callback example. (defined dojox/mobile/_itembase)

callback

defined dojox/mobile/_itembase

a callback function called when transition has been finished. function reference, or name of function in context.

i try call function after transition called.

i tried find example how set callback function. need find example of giving function context (parameters).

like this:
on(iconjs, "click", lang .hitch({"context":{"currentschool":schools[i].id}}, function(){getklassen("fillklastoevoegenview", this.context);}));

this tried (for html part)

     <li data-dojo-type="dojox.mobile.iconmenuitem" data-dojo-props="label: 'scholen', transition:'slide', url:'views/klappr/overviewschool.html', urltarget:'overviewschool' callback : 'overviewschoolcontroller.show()';" ></li>  

i need programmatically this

                         iconjs =new dojox.mobile.iconitem({label:'', deletable: false, icon:'images/tile_toevoegen.png', transition:'slide', class:'klasicon', url:'views/klappr/addklas.html', urltarget:'addklas', callback : 'overviewschoolcontroller.show();'}); 

itembase base class several dojo widgets, including dojox.mobile.listitem (which believe common of of them).

so, looking for, here you'll find how simplest example: dojo mobile , callback in dojox.mobile.listitem

also, programatic sample, should help: http://comments.gmane.org/gmane.comp.web.dojo.user/54040 specially one: http://permalink.gmane.org/gmane.comp.web.dojo.user/54117


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -