Set up a parent element to watch for events on children. Useful for binding events to elements which may not yet be on the page.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
scopeSelector |
string | selector for the parent element that will serve as delegator |
eventType |
string | event type to listen for |
selector |
string | selector for child elements to delegate to |
handler |
function | callback function if event is triggered |
bubbling |
boolean | whether or not the event bubbles up to the parent |
multiple |
boolean | whether or not the selector should return an array of items |