-
Notifications
You must be signed in to change notification settings - Fork 649
onClick event on array "+ add" button #208
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
I guess, but why? Whats the use case? It's a bit fiddly since it already has a ng-click that adds an instance to the array. |
I want to create a list that will be updated everytime "+add new" is clicked |
Updated in what way? From server? What about the instance being added? Do a workaround otherwise, hide the add button with css and put an button below with an onClick on it? |
Actually this is required for me too. My use case is a form that will be displayed via an iFrame. |
I've also got a use for this (or similar): [
{ key: "columns", type: "tabarray",
onChange: updateRowColumns() // or onAdd/onRemove, or whatever
},
{ key: "rows", type: "tabarray", items: [
"rows[].rowIdentifier",
{
key: "rows[].columns", // currently implemented as a list of indexes into the columns array
type: "checkboxes",
titleMap: buildFromColumns() // list of {value: columnIdx, name: column.name} for the checkboxes
}
]}
] I tried just using the onChange on the columns tabarray and it didn't trigger when adding or removing columns. |
Is there any way to listen to changes to the size of an array or tabarray form element? |
There is currently no way to listen to changes of the array, so a $watch on the underlying object is your only choice until onChange is implemented for arrays. |
Is it possible to make
onClick
work on array buttons?The text was updated successfully, but these errors were encountered: