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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AnchorTarget enum #28

Merged
merged 1 commit into from Jun 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/tink/domspec/Attributes.hx
Expand Up @@ -214,11 +214,18 @@ typedef FormAttr = {>GlobalAttr<Style>,

typedef AnchorAttr = {>GlobalAttr<Style>,
@:optional var href(default, never):String;
@:optional var target(default, never):String;
@:optional var target(default, never):AnchorTarget;
@:optional var type(default, never):String;
@:optional var rel(default, never):AnchorRel;
}

@:enum abstract AnchorTarget(String) to String from String {
var Blank = "_blank";
var Parent = "_parent";
var Self = "_self";
var Top = "_top";
}

typedef OptionAttr = {>GlobalAttr<Style>,
@:optional var disabled:Bool;
@:optional var label(default, never):String;
Expand Down