GithubHelp home page GithubHelp logo

Document event delegation about core HOT 4 CLOSED

x-tag avatar x-tag commented on August 27, 2024
Document event delegation

from core.

Comments (4)

csuwildcat avatar csuwildcat commented on August 27, 2024

Applying the delegation pseudo allows you to ensure that only clicks on
elements matching the selector you supply trigger your user function.

We need to start a separate section in the docs called pseudos, this should
be documented there. Can you address this with Arron?
On Sep 25, 2013 3:40 AM, "sole" [email protected] wrote:

I think I've asked about this in meetings a couple of times before, so for
the sake of trackability and posterity and all things ity, here it
goes: event delegation needs to be documented.

All the mentions to delegate in the docs are pretty obscure. Example:

events: {
'click:delegate(x-toggler)': function(){
// activate a clicked toggler
}
}

What does delegate in this context mean? Am I listening to the click
event or I'm delegating the click event to the x-toggler? Also, what does
delegate mean DOM event-wise? Does it bubble? Etc.

I've also tried to deduct how it works by looking at the code in existing
components but for some reason I can't. Help!

Also, I was unsure whether this bug should go here or in the x-tags-orghttps://github.com/x-tag/x-tags-orgrepo, so forgive me if it went to the wrong place :-)


Reply to this email directly or view it on GitHubhttps://github.com//issues/31
.

from core.

sole avatar sole commented on August 27, 2024

Thanks, that is helpful! And definitely not what the API led me to understand!

Another 🔔 ping for @pennyfx 😃

from core.

pennyfx avatar pennyfx commented on August 27, 2024

@sole, How's this?

http://www.x-tags.org/docs#pseudos

from core.

sole avatar sole commented on August 27, 2024

Nice! I think that explains things that otherwise would be solved in a way more complicated way!

thanks!

from core.

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.