Skip to main content
Version: v7

ion-progress-bar

shadow

プログレスバーは、アプリのロード、フォームの送信、更新の保存など、進行中の処理の状態をユーザーに知らせるものです。プログレスバーには2つのタイプがあります。プログレスバーには、determinateindeterminateの2種類があります。

Determinate

Determinateはデフォルトのタイプです。操作のパーセンテージがわかっている場合に使用されるべきです。進行状況は value プロパティを設定することで表現されます。これは、進捗が0から100%まで増加するように表示するために使用できます。

Buffer

bufferプロパティが設定されている場合、バッファーストリームがアニメーションの円と共に表示され、アクティビティを示します。また、bufferプロパティの値は、目に見えるトラックの量によって表されます。もし buffer の値が value プロパティより小さければ、目に見えるトラックはありません。もし buffer1 に等しければ、バッファースリームは隠されます。

Indeterminate

Indeterminateタイプは、処理にかかる時間が不明な場合に使用します。プログレスバーは value と連動しておらず、処理が完了するまでトラックに沿ってスライドしつづけます。

Progress Bars in Toolbars

テーマ

Colors

CSSカスタムプロパティ

CSS Shadow Parts

プロパティ

buffer

DescriptionIf the buffer and value are smaller than 1, the buffer circles will show. The buffer should be between [0, 1].
Attributebuffer
Typenumber
Default1

color

DescriptionThe color to use from your application's color palette. Default options are: "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", and "dark". For more information on colors, see theming.
Attributecolor
Type"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string & Record<never, never> | undefined
Defaultundefined

mode

Descriptionmodeは、どのプラットフォームのスタイルを使用するかを決定します。
Attributemode
Type"ios" | "md"
Defaultundefined

reversed

Descriptiontrue の場合、プログレスバーの方向を反転させます。
Attributereversed
Typeboolean
Defaultfalse

type

DescriptionThe state of the progress bar, based on if the time the process takes is known or not. Default options are: "determinate" (no animation), "indeterminate" (animate from left to right).
Attributetype
Type"determinate" | "indeterminate"
Default'determinate'

value

DescriptionThe value determines how much of the active bar should display when the type is "determinate". The value should be between [0, 1].
Attributevalue
Typenumber
Default0

イベント

No events available for this component.

メソッド

No public methods available for this component.

CSS Shadow Parts

NameDescription
progresstype"determinate"のときは現在値を表示し、type"indeterminate"`のときは前後にスライドするプログレスバーです。
streamバッファリング中に表示されるアニメーションの円です。これは buffer が設定され、type"determinate" のときのみ表示される。
trackThe track bar behind the progress bar. If the buffer property is set and type is "determinate" the track will be the width of the buffer value.

CSSカスタムプロパティ

NameDescription
--backgroundプログレストラックの背景、または buffer が設定されている場合はバッファバー。
--buffer-backgroundDEPRECATED、代わりに --background を使用します。
--progress-background現在値を表すプログレスバーの背景

Slots

No slots available for this component.