Dojo コンポーネントをプログラムで作成するための関数をどこで呼び出すのですか?
function wlCommonInit(){
var busy = new WL.BusyIndicator("content", { text: "Caricamento ..."});
busy.show(); // Show busy indicator
require([ "dojo/core-web-layer", "dojo/mobile-ui-layer",
"dojo/mobile-compat-layer" ], dojoInit);
busy.hide();
}
var codici_clienti_data,ragione_sociale_data,listini_cliente_data,listini_cliente_completi,ordini_cliente_data,ordine_cliente_dettaglio,ordine_cliente_dettaglio_articolo;
function creaOggettiDojo(){
//creo edgeToEdge List per lista ordini clienti
require([
"dojo/ready",
"dojo/store/Memory",
"dojox/mobile/EdgeToEdgeStoreList",
"dojox/mobile",
"dojox/mobile/parser"
], function(ready, Memory, EdgeToEdgeStoreList){
dojo.ready(function(){
var storeData = [
{ "label": "Wi-Fi", "icon": "images/i-icon-3.png", "rightText": "Off", "moveTo": "bar" },
{ "label": "VPN", "icon": "images/i-icon-4.png", "rightText": "VPN", "moveTo": "bar" }
];
var sampleStore = new Memory({data:storeData, idProperty:"label"});
var storeOrdiniClienti = new EdgeToEdgeStoreList({store:sampleStore}, "storeOrdiniClienti");
storeOrdiniClienti.startup();
});
});
//fine lista ordini clienti
}
function dojoInit() {
require([ "dojo", "dojo/parser", "dojox/mobile", "dojox/mobile/compat", "dojox/mobile/deviceTheme",
"dojox/mobile/ScrollableView",
"dojox/mobile/ScreenSizeAware",
"dojox/mobile/FixedSplitter",
"dojox/mobile/Container",
"dojox/mobile/Heading",
"dojox/mobile/EdgeToEdgeList",
"dojox/mobile/ListItem",
"dojox/mobile/RoundRect",
"dojox/mobile/TabBar",
"dojox/mobile/TabBarButton",
"dojox/mobile/Button",
"dijit/form/DataList",
"dojox/mobile/ComboBox",
"dojox/mobile/EdgeToEdgeStoreList",
"dojo/store/Memory",
"dojox/mobile/EdgeToEdgeDataList",
"dojo/data/ItemFileReadStore", "dojo/data/ItemFileWriteStore"
],
function(dojo) {
dojo.ready(function() {
});
});
}
コードのさまざまな部分で関数 creaOggettiDojo() を呼び出そうとしましたが、コンポーネントのレンダリングがありません。なにが問題ですか?