dojox.mobile

How to best apply an MVC architecture in dojo mobile (custom controllers)?

余生颓废 提交于 2020-01-06 02:23:24
问题 I'm pretty new to Dojo and I'm wondering about some best practises for building a MVC application. I know there are modules like dojox/app, but it seems like these are made for more complex applications. It seems like the best way to go is to make custom page-level controller objects with will handle all the page logic, but I'm not quite sure how to fit this piece in the puzzle. What is the proper way to switch between views and passing through parameters through them following a MVC

How to debug Dojo in browser?

情到浓时终转凉″ 提交于 2019-12-21 09:34:45
问题 I'm currently (trying) to develop an app with Worklight Studio 5.0.6 and Dojo (Mobile) 1.8.3. I have a really hard time to to find a proper method for debugging. After waiting 5-10 minutes for the build an deploy-process on the server, an error usually looks like this in the Chrome debugger: How am I supposed to track down this error in MY source? The whole stack trace consists entirely of Dojo code which generates an absolutely useless error message after 20 abstraction layers. Seriously,

sorting dojox mobile ListItem against label

懵懂的女人 提交于 2019-12-13 12:51:19
问题 I want to sort dojox mobile ListItem by label alphabetically. The label in my DOM looks like: <div class="subject">Sort alphabetically against me only</div> <span class="bomtype"> don't sort against me. </span> I want to sort by the text in the label having class="subject" in ascending order. I am using Dojo 1.9.1. 回答1: You can use dojox/mobile/EdgeToEdgeStoreList or dojox/mobile/RoundRectStoreList, for instance: <ul data-dojo-type="dojox/mobile/EdgeToEdgeStoreList" data-dojo-props='store:

dojo tabbar programatically created but not fixed at the right position

半世苍凉 提交于 2019-12-13 04:58:43
问题 i created a dojo tabbar programmatically and set the fixed:"bottom" attribute but the tabbar is created below the existing document and not fixed at the bottom of the window. After i have done a performeTransition to another view its fixed at bottom correctly. i did it like this: function createTabbar() { var tabBar = new dojox.mobile.TabBar({id:"tabContainer", barType : "tabBar", fixed: "bottom"}).placeAt(dijit.byId("mobileView")); var tabBarButtonNodes = new dojox.mobile.TabBarButton({label

Tabbar fixed:bottom. Buttons shift right slightly after transition from portrait to landscape

大憨熊 提交于 2019-12-11 19:58:39
问题 Worklight 6.1 Dojo 1.9 Created a ScrollableView with a tab bar fixed:top with two buttons, and a tab bar fixed:bottom with three buttons. When the application starts the tab bars, and buttons are centered correctly for both top and bottom. Test scenario for both Android emulator, and Nexus 7 device: 1) In portrait mode the application initializes, and the main view shows both tab bars with buttons centered correctly. 2) Rotate the device to landscape mode, and both tab bars transition

How to debug Dojo in browser?

眉间皱痕 提交于 2019-12-04 03:13:58
I'm currently (trying) to develop an app with Worklight Studio 5.0.6 and Dojo (Mobile) 1.8.3. I have a really hard time to to find a proper method for debugging. After waiting 5-10 minutes for the build an deploy-process on the server, an error usually looks like this in the Chrome debugger: How am I supposed to track down this error in MY source? The whole stack trace consists entirely of Dojo code which generates an absolutely useless error message after 20 abstraction layers. Seriously, how do you guys handle this in real life? What methods do you use for debugging Dojo-driven apps in the