Giter Site home page Giter Site logo

Comments (3)

ryantrinkle avatar ryantrinkle commented on July 26, 2024

The NS functions just add the ability to specify an XML namespace for the element - this is important for SVG and such, as your example shows. I'm not sure what the best way to document them is (maybe there's something we can do that's better than just showing all the duplicated function names?), but it would be great if the documentation included them somehow.

Under the hood, they're all built on document.createElementNS

from reflex-dom.

mango314 avatar mango314 commented on July 26, 2024

@ryantrinkle once I saw the NS function, I realized it was adding a namespace. the hard part was realizing that function even existed.

here is a simple pull request: #135

These element names aren't the most self-explanatory. An HTML programmer thinks in terms of <p> <li> <h1>, etc. and others in terms of el and elAttr etc... This is what I plan to do. At the moment I don't know the Haskell idiom for functions with optional arguments, but

  • tags
  • tags with attributes
  • tags with dynamic attributes

These are all very similar to the end-user and I plan to write things like ul and hr and whatever else in terms of the functions already available. These are all quick-fixes to the bigger issue.

from reflex-dom.

ali-abrar avatar ali-abrar commented on July 26, 2024

Closed via #135

from reflex-dom.

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.