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

Added handling for links (hyperlinks). #27

Merged
merged 3 commits into from
Jul 26, 2023
Merged

Conversation

NicholasMTElliott
Copy link
Contributor

Added a new element factory for "link"

Description

This adds a new type, "link", that internally renders a element. This can have any children and the entire contained space becomes a clickable link to the provided "href".

Added "text" as a helper shortcut that will just render a single child with the "text" value as the content

Motivation and Context

We had requests around adding links in PDFs and previously this just wasn't possible.

How Has This Been Tested?

Added some sample payloads using the short "text" form as well as a more complex "children" form using images.

Screenshots (if appropriate):

Copy link

@JeffMathewSyngenta JeffMathewSyngenta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested working

Copy link

@jmathew jmathew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved! Now with my real account

@NicholasMTElliott NicholasMTElliott merged commit 6f1feaa into mainline Jul 26, 2023
1 check passed
@NicholasMTElliott NicholasMTElliott deleted the AddLinkElement branch July 26, 2023 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants