Code Monkey home page Code Monkey logo

Comments (4)

patrick-rodgers avatar patrick-rodgers commented on June 5, 2024

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?

from pnpjs.

raymondlittle100 avatar raymondlittle100 commented on June 5, 2024

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?

from pnpjs.

patrick-rodgers avatar patrick-rodgers commented on June 5, 2024

Added a remove method to section, column, and part that will take them out of the collection.

from pnpjs.

github-actions avatar github-actions commented on June 5, 2024

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.

from pnpjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.