Skip to content

addEventListener not seeing datum #78

Answered by mattjvincent
mattjvincent asked this question in Q&A
Discussion options

You must be logged in to vote

My bad. Got it!

var myGenomeSpy = genomeSpyEmbed.embed(
    document.querySelector("#genome-spy-example"),
    spec, {
        bare: true
    }
).then((api) => {
    api.addEventListener("click", (event) =>
        console.log(event)
    );
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tuner
Comment options

Answer selected by mattjvincent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants