Results 1 to 2 of 2
  1.    #1  
    New to WebOS and I can't figure this one out despite looking at various examples

    In my little app, PreMedi, I have in the first scene, a list of modules, and the user taps on it and gets to the next module.



    The code for the modules assistant looks like this


    Code:
    		this.controller.setupWidget("modules", {
    			itemTemplate: "modules/moduleItem"
    		}, {
    			items: this.modules
    		});
    		this.controller.listen("modules", Mojo.Event.listTap, this.gotoModule.bindAsEventListener(this));
    	},
    
    	setupModules: function() {
    		this.modules = [
    			{label: "Alveolar-arterial gradient", scene: "aa" },
    			{label: "Abbreviated Mental Test", scene: "amt" },			
    			{label: "Anion gap", scene: "anion" },
    			{label: "Apache II score", scene: "apache" },
    			{label: "Apgar score", scene: "apgar" },
    			{label: "TIMI Score for STEMI", scene: "timistemi" }			
    		];
    	},
    
    	gotoModule: function(event) {
    		var module = event.item;
    		this.controller.stageController.pushScene(module.scene, module.label);
    	}
    });
    What I'd like to do is to setup perhaps a SubMenu button, and the selection will filter a category of label items in this.modules
    for categories e.g. renal, respiratory, cardiac, etc. rather than one long list.

    Appreciate any help/pointers.

    Thanks
    Check out my My Medical webOS Apps
    Featured free apps: DrugView | Eponyms | eMed | Dosecalcfree | Beeb News
  2.    #2  
    Bump. Anyone?
    Check out my My Medical webOS Apps
    Featured free apps: DrugView | Eponyms | eMed | Dosecalcfree | Beeb News

Posting Permissions