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

ion-menu-toggle

shadow

Menu Toggleコンポーネントは、メニューの開閉を切り替えるために使用することができます。

メニュートグルは、選択されたメニューが有効な場合にのみ表示されます。メニューが無効になっている場合や、分割ペインとして表示されている場合は、メニュートグルは非表示になります。常にメニュートグルを表示するには、autoHideプロパティをfalseに設定します。

詳しくは、menuのドキュメントを参照してください。

プロパティ​

autoHide​

DescriptionAutomatically hides the content when the corresponding menu is not active.

By default, it's true. Change it to false in order to keep ion-menu-toggle always visible regardless the state of the menu.
Attributeauto-hide
Typeboolean
Defaulttrue
DescriptionOptional property that maps to a Menu's menuId prop. Can also be start or end for the menu side. This is used to find the correct menu to toggle.

If this property is not used, ion-menu-toggle will toggle the first menu that is active.
Attributemenu
Typestring | undefined
Defaultundefined

イベント​

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​

NameDescription
``Content is placed inside the toggle to act as the click target.