Coder Social home page Coder Social logo

Possition of the $cell about cell HOT 3 CLOSED

intercellular avatar intercellular commented on June 2, 2024 1
Possition of the $cell

from cell.

Comments (3)

gliechtenstein avatar gliechtenstein commented on June 2, 2024

Thanks for the idea, I can definitely see where you're coming from.

If you're thinking about using cell with an existing DOM, I think you can easily achieve what you're looking for by using jQuery (via its appendTo, insertAfter, etc. methods) or even native DOM APIs like insertBefore, etc.) since Cell creates native HTML nodes. (If you're plugging Cell into an existing website, you're probably using jQuery anyway, and even if you're not using jQuery you can use vanilla javascript to move them around easily)

Since Cell's design goal is to be as minimal and abstract as possible, and since these features can be achieved with other means I don't think we need to implement this feature. I'll close this for now, but please feel free to reopen or leave a comment for further discussion. Thanks!

from cell.

fprijate avatar fprijate commented on June 2, 2024

Thanks for your answer

Thanks for the idea, I can definitely see where you're coming from.

No.
My primary intention is not to use cell as tool for minor modifications of existing HTML.
I have following in my mind.
Server sends me JSON and Cell renders it into existing DOM , which was previously rendered by cell.
In this case we should have factory method to do this.
Byproduct of this is also possibility of inserting cell's into existing static HTML.
Both insertions should be possible in previously discussed positions.

Also it would be nice if somebody (or group of us) make a converter from static HTML to cell's JSON.

from cell.

devsnek avatar devsnek commented on June 2, 2024

@fprijate https://gist.github.com/devsnek/f7c88b2d7f2856da8004b1033511a2d7

from cell.

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.