Headless CMS and Content Managment Hub
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.
 
 
 
 
 

37 lines
841 B

/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/
import { ChangeDetectionStrategy, Component, ElementRef, HostBinding } from '@angular/core';
import { fadeAnimation } from './animations';
@Component({
selector: 'sqx-dropdown-menu',
styleUrls: ['./dropdown-menu.component.scss'],
templateUrl: './dropdown-menu.component.html',
host: {
class: 'dropdown-menu',
},
animations: [
fadeAnimation,
],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class DropdownMenuComponent {
@HostBinding('@fade')
public get fade() {
return true;
}
public get nativeElement() {
return this.element.nativeElement;
}
constructor(
private readonly element: ElementRef,
) {
}
}