Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 Conditions onTapUrl #1135

Open
devditumbas opened this issue Dec 21, 2023 · 1 comment
Open

2 Conditions onTapUrl #1135

devditumbas opened this issue Dec 21, 2023 · 1 comment
Labels
question Further information is requested

Comments

@devditumbas
Copy link

First of all, thank you for your very extraordinary plugin. For example, I have an html widget that contains 2 links:

  1. External Link (red)
  2. Domain Link (blue)
    z1
    How do I set "if the domain link is clicked, it will go to the product model". Here's the layout I've created:
    z2
    Conversely, if an external link is clicked, it will use "external application mode".
    Once again, I thank you for the extraordinary plugin you have created.
@devditumbas devditumbas added the enhancement New feature or request label Dec 21, 2023
@daohoangson
Copy link
Owner

You can use the onTapUrl param. Check if you want to handle the URL yourself (if it is one of your expected domain etc.). If you did handle the URL, return true. Otherwise returning false will continue the default handler.

@daohoangson daohoangson added question Further information is requested and removed enhancement New feature or request labels Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants