src/loading/loading.component.ts
| selector | ibm-loading |
Inputs |
constructor(i18n: I18n)
|
||||||||
|
Defined in src/loading/loading.component.ts:36
|
||||||||
|
Parameters :
|
overlay
|
Set to
Default value: |
|
Defined in src/loading/loading.component.ts:36
|
|
size
|
Specify the size of the button
Type:
Default value: |
|
Defined in src/loading/loading.component.ts:29
|
|
title
|
Accessible title for the loading circle.
Defaults to the |
|
Defined in src/loading/loading.component.ts:22
|
|
import { Component, Input, HostBinding } from "@angular/core";
import { I18n } from "./../i18n/i18n.module";
@Component({
selector: "ibm-loading",
template: `
<div
[ngClass]="{'bx--loading--small': size === 'sm'}"
class="bx--loading">
<svg class="bx--loading__svg" viewBox="-75 -75 150 150">
<title>{{title}}</title>
<circle cx="0" cy="0" r="37.5" />
</svg>
</div>
`
})
export class Loading {
/**
* Accessible title for the loading circle.
* Defaults to the `LOADING.TITLE` value from the i18n service.
*/
@Input() title = this.i18n.get().LOADING.TITLE;
/**
* Specify the size of the button
* @type {("normal" | "sm")}
* @memberof Loading
*/
@Input() size: "normal" | "sm" = "normal";
/**
* Set to `true` to make loader with an overlay.
* @type {boolean}
* @memberof Loading
*/
@Input() @HostBinding("class.bx--loading-overlay") overlay = false;
constructor(private i18n: I18n) {}
}