Open Haibo-Zhou opened 3 months ago
Hi @Haibo-Zhou, I see you struggle here. Link only supports InlineElement
not PageElement
. For now you could try to use the onClick
modifier in combination with a CustomAction
. Also to achieve a pointer when hovering over the card try if you can use the style cursor: pointer;
. In summary, see if something like this works:
Card {
...
}
.style("cursor: pointer")
.onClick(CustomAction(""window.location.href='https://www.example.com';")
Hi @Haibo-Zhou, I see you struggle here. Link only supports
InlineElement
notPageElement
. For now you could try to use theonClick
modifier in combination with aCustomAction
. Also to achieve a pointer when hovering over the card try if you can use the stylecursor: pointer;
. In summary, see if something like this works:Card { ... } .style("cursor: pointer") .onClick(CustomAction(""window.location.href='https://www.example.com';")
This works (at least I tried it on an Image):
.style("cursor: pointer")
.onClick { CustomAction("window.location.href=\"https://www.example.com\";") }
I dig around ignite yesterday, and decide to replace my personal website with it. How to make a whole card or an image as a link? Below is my current achieved, I want to make a HStack to represent my apps in AppStore, and hit each of app image, it goes to relatived app intro page.