-
Notifications
You must be signed in to change notification settings - Fork 306
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
Ability to delete sections, columns and controls #13
Comments
You can manipulate the arrays using the standard array methods such as slice. Obviously we can make things easier - what would that look like? Would each control/column etc. have a delete or remove? What should happen to controls in a section if I delete it - delete them or keep them somehow? |
Ah never thought of that :). So if i remove the items from the array when the page save happens will that detect the sections/columns have gone and delete them? In terms of controls its difficult but you could have a method with some overloads. The default could be there are deleted and you pass a flag to say false and it moves them to the first section. Alternatively the overload could be to pass a section and column where any controls would go instead of being deleted. What you think? |
Added a remove method to section, column, and part that will take them out of the collection. |
This issue is locked for inactivity or age. If you have a related issue please open a new issue and reference this one. Closed issues are not tracked. |
Category
Version
Please specify what version of the library you are using: [ 1.0.2 ]
Expected / Desired Behavior / Question
Looking over the client side pages functionality there is the ability to add new sections, columns and controls but there is nothing to delete them. This would be really useful
The text was updated successfully, but these errors were encountered: