Open eizedev opened 10 months ago
@adamdriscoll Just saw the changelog for 4.2 and this issue: https://github.com/ironmansoftware/issues/issues/2697
So, the OnClick handler is integrated, thanks for that! :)
I do not know if there are any needs for the CardActionArea request of my issue here
Summary of the new feature / enhancement
Hi @adamdriscoll
currently we are using a custom function to create a "clickable card" in UD. I just realized, that the MUI Card element has a CardActionArea API - Material UI (mui.com) to define actions to specific card elements.
f.e. we could add a
href
to the CardActionArea and inside the CardActionArea we can put an image and/or text to make the card "clickable".Is it possible to implement this to the existing
New-UDCard
cmdlets to make this function available instead of usingNew-UDElement
withOnClick
attribute around the card?Thanks, René
Proposed technical implementation details (optional)
Idea (Put redirect in content and define the content of the CardActionArea with string array type
-Type
(Body, Media, Footer, Header)):Example javascript code with
CardActionArea
block (<CardActionArea href="https://google.com" target="_blank">
):Sandbox: https://codesandbox.io/s/vigorous-goodall-ngx8dd?file=/src/Demo.js