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

web: Add new widget TextDisplayLink #93

Open
mhthies opened this issue Nov 3, 2024 · 0 comments
Open

web: Add new widget TextDisplayLink #93

mhthies opened this issue Nov 3, 2024 · 0 comments
Labels
feature A new feature

Comments

@mhthies
Copy link
Owner

mhthies commented Nov 3, 2024

From the discussion #89: A new widget type TextDisplayLink shall be added that behaves just like TextDisplay but at the same time, the value works as a hyperlink to another SHC WebPage or an external URL. The value should be simply contained in an <a> tag and thus be rendered as a link.

The client side implementation of the TextDisplay widget can be reused for the new widget type.

The TextDisplayLink constructor shall take an additional parameter for specifying the link destination, which can either be e full URL as a string or a WebPage object or a new WebPageRef object (as already described in #92), which contains a web page name and a reference to a section within that page, that shall be added as an anchor to the link URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
None yet
Development

No branches or pull requests

1 participant