* Minor changes to demo mode.

This commit is contained in:
Bryan Ashby 2015-04-28 17:18:02 -06:00
parent 99fb3b34c7
commit 8bc2f31967
4 changed files with 22 additions and 9 deletions

View File

@ -459,6 +459,7 @@ ViewController.prototype.loadFromMenuConfig = function(options, cb) {
} }
} }
Log.trace( { formValue : formValue, actionValue : actionValue }, 'Action match');
return true; return true;
}; };

Binary file not shown.

View File

@ -176,14 +176,18 @@
} }
}, },
"demoMain" : { "demoMain" : {
"art" : "DEMOMAIN", "art" : "demo_main",
"options" : { "cls" : true }, "options" : { "cls" : true },
"form" : { "form" : {
"0" : { "0" : {
"VM1" : { "VM1" : {
"mci" : { "mci" : {
"VM1" : { "VM1" : {
"items" : [ "Edit Text View", "Other" ], "items" : [
"Single Line Text Editing Views",
"Spinner & Toggle Views",
"Other"
],
"focusTextStyle" : "U" "focusTextStyle" : "U"
} }
}, },
@ -227,14 +231,14 @@
}, },
"BT5" : { "BT5" : {
"width" : 8, "width" : 8,
"text" : "Back", "text" : "< Back",
"submit" : true "submit" : [ "esc" ]
} }
}, },
"submit" : { "submit" : {
"*" : [ "*" : [
{ {
"value" : 4, "value" : 5,
"action" : "@menu:demoMain" "action" : "@menu:demoMain"
} }
] ]
@ -245,10 +249,18 @@
} }
/* /*
:TODO: conceptual simplified menus -- actions/etc. without forms :TODO: conceptual simplified menus -- actions/etc. without forms
"thing" : {
"mci" : { {
"ET1" : { "myMenu" : {
"action" : "@menu:stuff" "art" : "MENUART",
"mci" : { // lack of "form": direct to form:0 {}
"VM1" : {
"items" : [ "Hello", "Goodbye" ],
"action" : "@method:someMethod" // implies { "submit" : true }
},
"submit" : {
// alternate form with filters
}
} }
} }
} }