Giter Site home page Giter Site logo

Comments (4)

slimsag avatar slimsag commented on June 14, 2024 1

I don't know anything about Material Design, but there are some others who have used it with Vecty in the past:

You should make certain that any DOM elements the material design library will attempt to modify on its own are isolated, i.e. using a vecty.Div with vecty.UnsafeHTML so that it is treated as an opaque element not owned by Vecty. See code example and further discussion around this in #236 (comment)

The other things you may wish to look at are the Mounter, Unmounter, and RenderSkipper interfaces:

Hope that helps!

from vecty.

soypat avatar soypat commented on June 14, 2024

I think Material Design expects the user to also hold onto the javascript handle to the component so as to have feedback to user inputs i.e. Current level of the slider.

from vecty.

soypat avatar soypat commented on June 14, 2024

@slimsag Thank you so much! I'll look into it!

from vecty.

soypat avatar soypat commented on June 14, 2024

@slimsag sure enough Mount and RenderSkip worked like a charm. HAve not gotten around to using Unmount() yet, but if it works like I think it does and given Material.js has destroyer methods, should work just fine. Thank you again for your amazing explanations and for maintaining this great package 👍

For posterity, here's the fix I applied: soypat/mdc@ea67825. Look for the Mount() and RenderSkip() implementations on Slider and Tooltip types.

from vecty.

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.