Skip to main content
Version: v6

ion-menu-toggle

shadow

The Menu Toggle component can be used to toggle a menu open or closed.

Menu toggles are only visible when the selected menu is enabled. If the menu is disabled or it's being presented as a split pane, the menu toggle will be hidden. To always display the menu toggle, the autoHide property can be set to false.

See the menu documentation for more information.

Properties

autoHide

Description対応するメニューがアクティブでない場合に、自動的にコンテンツを非表示にします。 デフォルトでは true になっています。メニューの状態に関係なく ion-menu-toggle を常に表示しておきたい場合は、false に変更します。
Attributeauto-hide
Typeboolean
Defaulttrue
Descriptionメニューの menuId プロパティに対応するオプションのプロパティです。メニュー側には start または end を指定することもできます。これは、トグルするための正しいメニューを見つけるために使用される。 このプロパティを使用しない場合、ion-menu-toggleは、最初にアクティブになったメニューをトグルします。
Attributemenu
Typestring | undefined
Defaultundefined

Events

No events available for this component.

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

NameDescription
``トグルの内側にコンテンツを配置し、クリックターゲットとして機能させます。