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

ion-buttons

scoped

Buttonsコンポーネントは、コンテナ要素です。 ツールバー の内部で使用し、標準のボタン、メニューボタン、戻るボタンを含むいくつかのタイプのボタンを含めることができる。

基本的な使い方​

Buttons Placement​

ツールバー内のボタンは、スロットという名前を使って配置することができます。下図は各スロットの説明です。

SlotDescription
startPositions to the left of the content in LTR, and to the right in RTL.
endPositions to the right of the content in LTR, and to the left in RTL.
secondaryPositions element to the left of the content in ios mode, and directly to the right in md mode.
primaryPositions element to the right of the content in ios mode, and to the far right in md mode.

Buttonsのタイプ​

ツールバーのボタンは、デフォルトでは透明ですが、ボタンの fill プロパティで変更することが可能です。この例で バックボタン と メニューボタン に含まれるプロパティは表示目的であり、正しい使用方法はそれぞれのドキュメントをご覧ください。

Collapsible Buttons​

ボタンに collapse プロパティを設定すると、ヘッダーが折りたたまれたときにボタンが折りたたまれます。これは通常、collapsible large titles と共に使用します。

備考

この機能はiOS modeでのみ有効です。

プロパティ​

collapse​

Descriptiontrueを指定すると、ツールバーが最初のツールバーでない場合、親ツールバーが完全に折り畳まれたときにボタンが消えます。ツールバーが最初のツールバーである場合、ボタンは隠され、すべてのツールバーが完全に折りたたまれたときにのみ表示されます。 ion-headerで collapseをtrueに設定したios` modeにのみ適用されます。 通常、Collapsible Large Titlesに使用されます。
Attributecollapse
Typeboolean
Defaultfalse

イベント​

No events available for this component.

メソッド​

No public methods available for this component.

CSS Shadow Parts​

No CSS shadow parts available for this component.

CSSカスタムプロパティ​

No CSS custom properties available for this component.

Slots​

No slots available for this component.