Code Monkey home page Code Monkey logo

Comments (6)

therustmonk avatar therustmonk commented on April 29, 2024 2

I've fixed it with #73, check, please. You can reopen this issue again if your problem still exists.

from yew.

therustmonk avatar therustmonk commented on April 29, 2024

It's possible but I tried to avoid changing the tag's name, because I can't change type (tag) of the node in the DOM tree, I can replace it to the new only. Virtual node keeps the reference to the DOM's node and I'll have to add some workaround to replace the node there.

Could you describe the case where you need this feature (or send the prospective code example). Maybe I already have a solution.

from yew.

remexre avatar remexre commented on April 29, 2024

In the Markdown renderer I wrote (see #60), I change td's to th's after getting a End(TableHead) event; doing it that way's a minor kludge, but then I don't need to maintain a stack of "table state info" (header or body, column number, etc.).

from yew.

therustmonk avatar therustmonk commented on April 29, 2024

Well... I've forgotten to fix this: https://github.com/DenisKolodin/yew/blob/4a399af0c701cd7f6a51332d3c2b03126e0db455/src/virtual_dom/vtag.rs#L207
I will do it right now! Thank you! 👍

from yew.

remexre avatar remexre commented on April 29, 2024

Forgive me if I'm wrong, but the tag field is still private.

from yew.

therustmonk avatar therustmonk commented on April 29, 2024

@remexre I made it public in #80 (you can test with that branch). Also I will try to test your repository to find a good solution for your case.

from yew.

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.