ion-menu-toggle
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 に変更します。 |
Attribute | auto-hide |
Type | boolean |
Default | true |
menu
Description | メニューの menuId プロパティに対応するオプションのプロパティです。メニュー側には start または end を指定することもできます。これは、トグルするための正しいメニューを見つけるために使用される。 このプロパティを使用しない場合、ion-menu-toggle は、最初にアクティブになったメニューをトグルします。 |
Attribute | menu |
Type | string | undefined |
Default | undefined |
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
Name | Description |
---|---|
`` | トグルの内側にコンテンツを配置し、クリックターゲットとして機能させます。 |