GithubHelp home page GithubHelp logo

Comments (2)

uzairfarooq avatar uzairfarooq commented on August 23, 2024 1

This could be heavy on performance but I guess still good to have if anyone wants to use it. I imagine something similar to jQuery's :contains selector:

document.arrive('.elem:contains(Hello)', (e) => {
  console.log(e);
});

Note: We don't use jQuery in the library so :contains have to be custom implemented.

from arrive.

narcolepticinsomniac avatar narcolepticinsomniac commented on August 23, 2024

.elem:contains(Hello)

Pretty sure this was exactly the use case I was referring to at the time. I've since quit using jQuery, in favor of writing my own terrible js.

Custom :contains would work, but might be confusing, given that it's heavily associated with jQuery. Either way, the goal would be to enable something like fireOnCharacterDataModification.

This isn't something I've experimented with since the OP while using arrive, so if it's already capable of firing on text change, it's a non-issue. If not, it would be a solid feature. =)

from arrive.

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.