diff --git a/core/view_controller.js b/core/view_controller.js index 92c7e6d4..819adf64 100644 --- a/core/view_controller.js +++ b/core/view_controller.js @@ -459,6 +459,7 @@ ViewController.prototype.loadFromMenuConfig = function(options, cb) { } } + Log.trace( { formValue : formValue, actionValue : actionValue }, 'Action match'); return true; }; diff --git a/mods/art/demo_edit_text_view1.ans b/mods/art/demo_edit_text_view1.ans index 8d380b90..8053f315 100644 Binary files a/mods/art/demo_edit_text_view1.ans and b/mods/art/demo_edit_text_view1.ans differ diff --git a/mods/art/DEMOMAIN.ANS b/mods/art/demo_main.ans similarity index 100% rename from mods/art/DEMOMAIN.ANS rename to mods/art/demo_main.ans diff --git a/mods/menu.json b/mods/menu.json index 5a221dff..9c7aad6d 100644 --- a/mods/menu.json +++ b/mods/menu.json @@ -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 + } } } }