Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Hi ,
i have text input widget and a button.I want to invoke a function getName() on the button click at the same time i want to pass the textbox value to this function.How can i do it?
Solved! Go to Solution.
Are you looking for something like this (check the video and code below):
-----------
$scope.getData = function() {
var inText = $scope.app.view['Home'].wdg['textInput-1'].text;
$scope.outputData(inText);
};
$scope.outputData = function(inText){
console.log('inText is ', inText);
}
------------
Are you looking for something like this (check the video and code below):
-----------
$scope.getData = function() {
var inText = $scope.app.view['Home'].wdg['textInput-1'].text;
$scope.outputData(inText);
};
$scope.outputData = function(inText){
console.log('inText is ', inText);
}
------------
Thanks Dmitry! it worked.