* 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;
};

Binary file not shown.

View File

@ -176,14 +176,18 @@
}
},
"demoMain" : {
"art" : "DEMOMAIN",
"art" : "demo_main",
"options" : { "cls" : true },
"form" : {
"0" : {
"VM1" : {
"mci" : {
"VM1" : {
"items" : [ "Edit Text View", "Other" ],
"items" : [
"Single Line Text Editing Views",
"Spinner & Toggle Views",
"Other"
],
"focusTextStyle" : "U"
}
},
@ -227,14 +231,14 @@
},
"BT5" : {
"width" : 8,
"text" : "Back",
"submit" : true
"text" : "< Back",
"submit" : [ "esc" ]
}
},
"submit" : {
"*" : [
{
"value" : 4,
"value" : 5,
"action" : "@menu:demoMain"
}
]
@ -245,10 +249,18 @@
}
/*
:TODO: conceptual simplified menus -- actions/etc. without forms
"thing" : {
"mci" : {
"ET1" : {
"action" : "@menu:stuff"
{
"myMenu" : {
"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
}
}
}
}