This is an automated email from the ASF dual-hosted git repository.
piotrz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new aea5421 HTML: Add "download" attribute to hyperlink
aea5421 is described below
commit aea542135dcdb170c551a89f4b7dae54bbd35d75
Author: Piotr Zarzycki <[email protected]>
AuthorDate: Sun Dec 20 14:21:52 2020 +0100
HTML: Add "download" attribute to hyperlink
---
.../royale/org/apache/royale/html/elements/A.as | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/A.as
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/A.as
index 8b187d0..f6be9e8 100644
---
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/A.as
+++
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/A.as
@@ -88,7 +88,27 @@ package org.apache.royale.html.elements
_target = value;
setAttribute('target', value);
}
-
+
+ private var _download:String = "";
+
+ /**
+ * Prompts the user to save the linked URL instead of
navigating to it
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.9.8
+ */
+ public function get download():String
+ {
+ return _download;
+ }
+ public function set download(value:String):void
+ {
+ _download = value;
+ setAttribute('download', value);
+ }
+
private var _rel:String = "";
/**
* The rel attribute specifies the relationship between the current
document and the linked document.