mirror of
https://github.com/mempool/mempool.git
synced 2024-11-20 10:21:52 +01:00
Add border input in the qr code component
This commit is contained in:
parent
da3446f522
commit
6f68c1666f
@ -1,4 +1,4 @@
|
||||
<div class="holder" [ngStyle]="{'width': size, 'height': size}">
|
||||
<img *ngIf="imageUrl" [src]="imageUrl">
|
||||
<canvas #canvas></canvas>
|
||||
<canvas #canvas [style]="{'border': border + 'px solid white'}"></canvas>
|
||||
</div>
|
||||
|
@ -12,6 +12,7 @@ export class QrcodeComponent implements AfterViewInit {
|
||||
@Input() data: string;
|
||||
@Input() size = 125;
|
||||
@Input() imageUrl: string;
|
||||
@Input() border = 0;
|
||||
@ViewChild('canvas') canvas: ElementRef;
|
||||
|
||||
qrcodeObject: any;
|
||||
|
Loading…
Reference in New Issue
Block a user