Skip to content

Click event / destination #194

Answered by TarekRaafat
jmmpf asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @jmmpf,

Apologies for my late reply.

Assuming you have a JSON object that looks like the below.

{
    "key": "value",
    "url": "https://www.google.com/"
}

Option 1: Redirect to URL

onSelection: feedback => {
    window.location.href = feedback.selection.value.url;
}

Option 2: Open new page

onSelection: feedback => {
    window.open(feedback.selection.value.url, "_blank");
}

Have a nice day! :)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TarekRaafat
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