Moderator: Neosoft Support
Tony Kroos wrote:Do you mean how to run nab action from plugin?
Neosoft Support wrote:You can't use NeoAppBuuilder's scripting language in a plugin - only JavaScript. However, all NeoAppBuilder actions are converted to JavaScript by the compiler. So if you look at the code created by the compiler for an app you can see the JavaScript equivalents for each NAB action. In most cases you can use similar calls in your plugins.
NeoApp.controller("NewPage_Ctrl", function($scope,$rootScope,$route,$timeout,$filter,$window,$animate) {
$App.NAB.PageNumber = 1;
$App.NAB.PageID = "NewPage";
$scope.PushButton1_click = function() {debugScriptBegin( 103,"PushButton1","click",1 );
debugScriptRun( 103,"GotoPage \"NewPage\"",0 );
$scope.GotoPage( "NewPage" );
debugScriptEnd( 103 );};
});
function() {$scope.GotoPage( "NewPage" );
BeginJS
$scope.GotoPage( "NewPage" );
EndJS
var neoApp = angular.element(document.getElementById("ng-view")).scope();
neoApp.GotoPage( "NewPage" );
Return to General NeoAppBuilder Discussion
Users browsing this forum: No registered users and 1 guest