Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.

Top Warning

maxSS edited this page Sep 13, 2019 · 7 revisions
import { JamTopWarningModule } from 'ngx-jsonapi-material';

Selector: jam-top-warning

Properties
Name Value type Required Description
@Input() opened boolean false

Single top warning

<jam-single-warning
    message="This is a test message"
    link="https://multinexo.com"
></jam-single-warning>

Top warning

import { TopWarningService, IWarning } from 'ngx-jsonapi-material';
.
.
.
public example_warning: IWarning;

public constructor(private topWarningService: TopWarningService) {
    this.example_warning = {
        attributes: {
            message: 'This is a test message',
            link: 'https://multinexo.com'
        },
        id: 'test_message'
    };

    topWarningService.setWarningMessage(this.example_warning);
}
<jam-top-warning
    [status]="opened"
></jam-top-warning>
Clone this wiki locally