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

Add support for the target attribute in a FormContext #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

julianschiavo
Copy link
Contributor

This PR adds support for the target form attribute, which was previously only available in AnchorContext when using Plot. On forms, it specifies where the response received after submitting the form should be shown.

/// Assign a target to the form, specifying where the response
/// received after submitting the form should be displayed.
/// - parameter target: The target to assign. See `HTMLAnchorTarget`.
static func target(_ target: HTMLAnchorTarget) -> Node {
Copy link
Owner

Choose a reason for hiding this comment

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

I think, along with this, we should rename HTMLAnchorTarget to something more appropriate (now that it's not only used for anchors) - for example HTMLBrowserTarget, since it's all about assigning a target for the browser to display a page in.

@JohnSundell JohnSundell added the awaiting update Waiting for an update from the PR's author. label Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting update Waiting for an update from the PR's author.
Projects
None yet
2 participants