Core controls

March 6, 2021 ยท View on GitHub

Banner is a box used to notifiy the user something is wrong with their app. It provide some quick fix functionalities

Banner

Example for the image above

<bl-banner fixMessage="Rerun task" [fix]="rerun" type="warning">
    <div [other-fix]="rerunDifferent" fixMessage="Rerun with different attributes"></div>
    <div message>{{exitCodeMessage}}</div>
</bl-banner>
export class MyComponent {

    @autobind()
    public rerun() {
        return of(true); // Do your quickfix here
    }

    @autobind()
    public rerunDifferent() {
        return of(true); // Do your quickfix here
    }
}

Gauge

Gauge is a custom graphical representation that can show a min, max and a value.

Gauge

Example for the image above

<bl-gauge [value]=[109] options="gaugeOptions" size="small">
</bl-gauge>
export class MyComponent {
    public gaugeOptions = {
        min: 0,
        max: 240,
    }
}
AttrDescription
sizeSize can be one of the presets xsmall small medium large or any number.
valuevalue of the gauge
optionsOptions for the gauge. See gauge-config.ts