Initialization of dojo widget in mobile fails

1
I was trying to implement a existing dojo widget in mendix, a slider, and while i get it working as a normal widget, my widget fails to initialize in my mobile version. The weird thing is the widget is created but when shown it only shows the html frame with no functionality on it at all. Is there some lifecycle method i have to call to finish the intialization or is it harder then that and is it not possible to use normal widgets like that in the mobile client? Here the code i call from my postCreate. postCreate : function(){ console.debug(this.id + ".postCreate"); this.initValues(); }, initValues : function(){ console.debug(this.id + ".initValues"); if (!this.slider){ this.slider = new dijit.form.HorizontalSlider({ name: "slider", value: 5, minimum: -10, maximum: 10, intermediateChanges: true, style: "width:300px;" }); } this.domNode.appendChild(this.slider.domNode); },
asked
1 answers
2

The slider for mobile has data-dojo-type dojox.mobile.Slider. For example see here As there is a complete set for mobile from dojo, the standard desktop ones will probably not work on mobile.

answered