メインコンテンツまでスキップ
バージョン: 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​

DescriptionIf true, buttons will disappear when its parent toolbar has fully collapsed if the toolbar is not the first toolbar. If the toolbar is the first toolbar, the buttons will be hidden and will only be shown once all toolbars have fully collapsed.

Only applies in ios mode with collapse set to true on ion-header.

Typically used for 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.