-
Notifications
You must be signed in to change notification settings - Fork 649
sending a arrayIndex as a parameter to onclick button function #568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Have you tried $index? I know that is available for a tabarray, I would assume it is for any array, but haven't checked. |
nope it doesn't work either the value comes undefined to the function: $scope.showCountries = function(index) { |
Can you provide a more detailed example of what you are doing, like a plunker or something similar? May help to see where the problem is. |
@Anthropic I can give an example: I want to open a website based on the input in the form.
Additionally, I'm hoping @davidlgj or another expert might be able to chime in on this? |
Thanks @franklopez @vinceis1337 I will look into it, I have added this to a copy locally and so far so good, I am hoping it can be done as part of PR #652 |
Has anyone had any success with passing the arrayindex / $index as a parameter to a function? |
@coxrichuk it is partially working in the webpack branch but at the same time it has other things broken. But you could certainly take a look there for ideas on how it was fixed, but there are also other questions asked in issues that also provide further info on how it can be overcome. |
This works in the alphas for v1.0.0, you can pass whatever($index) |
Excited to see this functionality in 1.0.0! |
Hi I have this issue:
form:
{
"type": "button",
"htmlClass" : "bt-down",
"onClick" : "showCountries(arrayIndex)",
"icon": "fa fa-search"
}
this in inside an array, and i want to call showCountries(arrayIndex) and have the index array value in my function how can i do this?
regards,
Francisco Lopes
The text was updated successfully, but these errors were encountered: