Class IgxCircularProgressBarComponent

階層

Hierarchy

  • BaseProgressDirective
    • IgxCircularProgressBarComponent

実装

  • AfterViewInit
  • AfterContentInit

コンストラクター

プロパティ

_interval: any
animationDuration: number = 2000

プログレス バーを不確定に設定/取得します。デフォルトでは 2000ms です。

<igx-linear-bar [indeterminate]="true"></igx-linear-bar>
id: string = ...

id 属性の値を設定します。提供されていない場合は、自動的に生成されます。

<igx-circular-bar [id]="'igx-circular-bar-55'" [value]="50"></igx-circular-bar>
indeterminate: boolean = false

プログレス バーを不確定に設定/取得します。デフォルトの設定は false です。

<igx-linear-bar [indeterminate]="true"></igx-linear-bar>
<igx-circular-bar [indeterminate]="true"></igx-circular-bar>
progressChanged: EventEmitter<IChangeProgressEventArgs> = ...

進行状況が変更された後にトリガーするイベントです。

public progressChange(event) {
alert("Progress made!");
}
//...
<igx-circular-bar [value]="currentValue" (progressChanged)="progressChange($event)"></igx-circular-bar>
<igx-linear-bar [value]="currentValue" (progressChanged)="progressChange($event)"></igx-linear-bar>
text: string

igxCircularBar に表示するテキストを取得または設定します。

<igx-circular-bar text="Progress"></igx-circular-bar>
let text = this.circularBar.text;
textVisibility: boolean = true

テキストの表示状態を設定します。デフォルトで true に設定されます。

<igx-circular-bar [textVisibility]="false"></igx-circular-bar>

アクセサー

  • get animate(): boolean
  • progress bar にアニメーションがあるかどうかを true/false として返します。

    @ViewChild("MyProgressBar")
    public progressBar: IgxLinearProgressBarComponent | IgxCircularBarComponent;
    public animationStatus(event) {
    let animationStatus = this.progressBar.animate;
    alert(animationStatus);
    }

    返却 boolean

  • set animate(animate): void
  • 進行状況をアニメーション化します。デフォルトで true に設定されます。

    <igx-linear-bar [animate]="false" [max]="200" [value]="50"></igx-linear-bar>
    <igx-circular-bar [animate]="false" [max]="200" [value]="50"></igx-circular-bar>

    パラメーター

    • animate: boolean

    返却 void

  • get max(): number
  • progress bar の最大進行状況値を返します。

    @ViewChild("MyProgressBar")
    public progressBar: IgxLinearProgressBarComponent | IgxCircularBarComponent;
    public maxValue(event) {
    let max = this.progressBar.max;
    alert(max);
    }

    返却 number

  • set max(maxNum): void
  • 渡すことができる最大値を設定します。デフォルトで 100 に設定されます。

    <igx-linear-bar [max]="200" [value]="0"></igx-linear-bar>
    <igx-circular-bar [max]="200" [value]="0"></igx-circular-bar>

    パラメーター

    • maxNum: number

    返却 void

  • get step(): number
  • progress bar の進行状況インジケーターを更新する値を返します。

    @ViewChild("MyProgressBar")
    public progressBar: IgxLinearProgressBarComponent | IgxCircularBarComponent;
    public stepValue(event) {
    let step = this.progressBar.step;
    alert(step);
    }

    返却 number

  • set step(val): void
  • 進行状況インジケーターの更新量の値を設定します。これはデフォルトでは 1 です。

    <igx-linear-bar [max]="200" [value]="0" [step]="1"></igx-linear-bar>
    <igx-circular-bar [max]="200" [value]="0" [step]="1"></igx-circular-bar>

    パラメーター

    • val: number

    返却 void

  • get valueInPercent(): number
  • IgxLinearProgressBarComponent/IgxCircularProgressBarComponent 値をパーセンテージとして返します。

    @ViewChild("MyProgressBar")
    public progressBar: IgxLinearProgressBarComponent; // IgxCircularProgressBarComponent
    public valuePercent(event){
    let percentValue = this.progressBar.valueInPercent;
    alert(percentValue);
    }

    返却 number

メソッド