all files / component/sidenav/ sidenav-separator.directive.ts

83.33% Statements 5/6
100% Branches 0/0
50% Functions 1/2
75% Lines 3/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25                                           
/*
 *  @license
 *  Copyright Hôpitaux Universitaires de Genève. All Rights Reserved.
 *
 *  Use of this source code is governed by an Apache-2.0 license that can be
 *  found in the LICENSE file at https://github.com/DSI-HUG/dejajs-components/blob/master/LICENSE
 */
 
import { Directive, ElementRef } from '@angular/core';
 
@Directive({
    selector: 'deja-sidenav-menu-separator, [deja-sidenav-menu-separator]'
})
export class DejaSidenavMenuSeparatorDirective {
    constructor(el: ElementRef) {
        Object.assign(el.nativeElement.style, {
            display: 'block',
            background: 'rgba(0, 0, 0, 0.14)',
            height: '1px',
            margin: '8px 0'
        });
    }
}