File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ import {Chip} from './chip.js';
19
19
export class AssistChip extends Chip {
20
20
@property ( { type : Boolean } ) elevated = false ;
21
21
@property ( ) href = '' ;
22
+ /**
23
+ * The filename to use when downloading the linked resource.
24
+ * If not specified, the browser will determine a filename.
25
+ * This is only applicable when the chip is used as a link (`href` is set).
26
+ */
27
+ @property ( ) download = '' ;
22
28
@property ( ) target : '_blank' | '_parent' | '_self' | '_top' | '' = '' ;
23
29
24
30
protected get primaryId ( ) {
@@ -49,6 +55,7 @@ export class AssistChip extends Chip {
49
55
id ="link "
50
56
aria-label =${ ariaLabel || nothing }
51
57
href =${ this . href }
58
+ download=${ this . download || nothing }
52
59
target=${ this . target || nothing }
53
60
> ${ content } </ a
54
61
>
You can’t perform that action at this time.
0 commit comments