Documentation
¶
Overview ¶
Package menu contains Material 3 Menu components.
Reference: [Menus](https://m3.material.io/components/menus/overview) Specs: [Menus Specs](https://m3.material.io/components/menus/specs)
Index ¶
- func DropdownMenu(expanded bool, onDismissRequest func(), content api.Composable, ...) api.Composable
- func DropdownMenuItem(textStr string, onClick func(), options ...DropdownMenuItemOption) api.Composable
- type Composer
- type DropdownMenuColors
- type DropdownMenuItemColors
- type DropdownMenuItemOption
- type DropdownMenuItemOptions
- type DropdownMenuOption
- type DropdownMenuOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DropdownMenu ¶
func DropdownMenu( expanded bool, onDismissRequest func(), content api.Composable, options ...DropdownMenuOption, ) api.Composable
DropdownMenu Composable Uses a Popup to display content on top of other content.
func DropdownMenuItem ¶
func DropdownMenuItem( textStr string, onClick func(), options ...DropdownMenuItemOption, ) api.Composable
DropdownMenuItem Composable
Types ¶
type DropdownMenuColors ¶
func DefaultDropdownMenuColors ¶
func DefaultDropdownMenuColors(c Composer) DropdownMenuColors
type DropdownMenuItemColors ¶
type DropdownMenuItemColors struct {
TextColor graphics.Color
LeadingIconColor graphics.Color
TrailingIconColor graphics.Color
DisabledTextColor graphics.Color
DisabledLeadingIconColor graphics.Color
DisabledTrailingIconColor graphics.Color
}
func DefaultDropdownMenuItemColors ¶
func DefaultDropdownMenuItemColors(c Composer) DropdownMenuItemColors
type DropdownMenuItemOption ¶
type DropdownMenuItemOption func(*DropdownMenuItemOptions)
func WithEnabled ¶
func WithEnabled(enabled bool) DropdownMenuItemOption
func WithLeadingIcon ¶
func WithLeadingIcon(icon api.Composable) DropdownMenuItemOption
func WithMenuItemModifier ¶
func WithMenuItemModifier(mod ui.Modifier) DropdownMenuItemOption
func WithTrailingIcon ¶
func WithTrailingIcon(icon api.Composable) DropdownMenuItemOption
type DropdownMenuItemOptions ¶
type DropdownMenuItemOptions struct {
Modifier ui.Modifier
LeadingIcon api.Composable
TrailingIcon api.Composable
Enabled bool
}
func DefaultDropdownMenuItemOptions ¶
func DefaultDropdownMenuItemOptions() DropdownMenuItemOptions
type DropdownMenuOption ¶
type DropdownMenuOption func(*DropdownMenuOptions)
func WithModifier ¶
func WithModifier(m ui.Modifier) DropdownMenuOption
func WithOffset ¶
func WithOffset(x, y unit.Dp) DropdownMenuOption
type DropdownMenuOptions ¶
func DefaultDropdownMenuOptions ¶
func DefaultDropdownMenuOptions() DropdownMenuOptions
Click to show internal directories.
Click to hide internal directories.