Templated Mobile widget

1
Hi, I'm trying to convert the existing web version of the loginsystem widget to a mobile version. The web version is templated so it uses the LoginForm.html as HTML template. dojo.declare("loginsystemmobile.widget.LoginFormMobile",mobile.widget._Widget, { addons:[dijit._Templated],inputargs:{ templatePath:dojo.moduleUrl("loginsystemmobile.widget","templates/LoginForm.html"), If i use the code above, the dojoAttachPoints declared in the LoginForm.html are undefined and thus not usable. It seems that the HTML template is not correctly loaded. Does anyone know how to use a template in a mobile widget?
asked
1 answers
2

I found the following example on dijit documentation:

 <script type="text/javascript">
  dojo.declare("MyWidget", [dijit._Widget, dijit._Templated], {
      templateString: dojo.cache("myNameSpace", "templates/MyWidget.html"),
  });
</script>

Try replacing the templatePath with templateString.

answered