mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
515 B
23 lines
515 B
/*
|
|
* Squidex Headless CMS
|
|
*
|
|
* @license
|
|
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
|
|
*/
|
|
|
|
import { Directive, HostListener, Input } from '@angular/core';
|
|
|
|
@Directive({
|
|
selector: '[sqxPopupLink]',
|
|
})
|
|
export class PopupLinkDirective {
|
|
@Input('sqxPopupLink')
|
|
public url: string;
|
|
|
|
@HostListener('click')
|
|
public onClick(): boolean {
|
|
window.open(this.url, '_target', 'location=no,toolbar=no,width=500,height=500,left=100,top=100;');
|
|
|
|
return false;
|
|
}
|
|
}
|
|
|