メインコンテンツまでスキップ
バージョン: v8

ion-backdrop

shadow

Backdrops are full screen components that overlay other components. They are useful behind components that transition in on top of other content and can be used to dismiss that component.

Basic Usage​

The backdrop prevents clicking or tapping on the content behind it. It is transparent by default, so the below demo includes CSS to make it visible.

Styling​

The backdrop can be customized by assigning CSS properties directly to the backdrop element. Common properties include background-color, background and opacity.

Content can be displayed above the backdrop by setting a z-index on the content, higher than the backdrop (defaults to 2).

Properties​

stopPropagation​

Descriptiontrueの場合、バックドロップはタップ時に伝搬を停止します。
Attributestop-propagation
Typeboolean
Defaulttrue

tappable​

Descriptiontrueの場合、背景をクリックすることができ、ionBackdropTapイベントを発生させます。
Attributetappable
Typeboolean
Defaulttrue

visible​

Descriptiontrueの場合、バックドロップが表示されます。
Attributevisible
Typeboolean
Defaulttrue

Events​

NameDescriptionBubbles
ionBackdropTapバックドロップがタップされたときに発行されます。true

Methods​

No public methods available for this component.

CSS Shadow Parts​

No CSS shadow parts available for this component.

CSS Custom Properties​

No CSS custom properties available for this component.

Slots​

No slots available for this component.