-
Notifications
You must be signed in to change notification settings - Fork 920
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
Field type: array #68
Comments
I've done some bits like this before, so should be able to pick it up, I'm thinking maybe to get angularjs packaged with the app, which will allow us to write cleaner field/column code, especially things like this |
Ehm... I don't know... right now Backpack doesn't require you to know any JS frameworks to completely understand and customize it. And I personally think that's a plus. Because:
I say, let's wait for more stuff to need Angular before we decide we need it. The functionality above can be done using jQuery too, but I do understand what you're saying - it definitely won't be as clean... |
I would expect the users to have to know angular, they would still configure it via the attributes within the crud controller, they wouldn't ever know what was under the hood unless they dived in. The main reason for this suggestion for this request is the repeatable functionality you'd get very easily and quickly |
Yeah, I understand, but I don't find this a complex functionality at all to code using jQuery, it's just a "clone". Let me sleep on it, I may be oversimplifying it in my head now :-) We also need to take this future functionality into account when making a decision about this. |
I've added a pull request in for this as I needed the functionality today anyway :) #132 - this also works as the matrix functionality you're thinking about |
{"a":1,"b":2,"c":3,"d":4,"e":5}
;================= [ - remove ]
================= [ - remove ]
================= [ - remove ]
[ + add new item ]
It would work GREAT with the new 'array' column type.
Possible issues:
The text was updated successfully, but these errors were encountered: