-
Notifications
You must be signed in to change notification settings - Fork 2
Events
Ben Boyle edited this page Apr 26, 2016
·
3 revisions
Event name | Fired when | If you cancel it… |
---|---|---|
relevant | an element that is hidden has become relevant and will be shown | the element will remain irrelevant and stay hidden |
irrelevant | an element that is shown has become irrelevant and will be hidden | the element will remain relevant and be visible |
relevant-done | an element became relevant and is now shown | not applicable |
irrelevant-done | an element became irrelevant and has been hidden | not applicable |
You can suppress the relevant
and irrelevant
events and cancel them to prevent an elements relevance state from changing.
You will need to cancel the event before it reaches the document
(this is where the default handlers are bound).