PaneItemExpander QML Type
An expandable navigation item group. More...
| Import Statement: | import FluentUI.Controls 1.0 |
Properties
- children : list
- enabled : bool
- icon : var
- iconColor : color
- iconFamily : string
- iconSpacing : int
- key : string
- title : string
- visible : bool
Signals
- void tap()
Methods
- void tap()
Detailed Description
PaneItemExpander represents a group of navigation items that can be expanded or collapsed. It displays a title and optional icon, and contains a list of child PaneItem objects that are shown when the expander is open.
Usage Example
import QtQuick import FluentUI.Controls PaneItemExpander { title: "Settings" icon: "settings" children: [ PaneItem { title: "General"; key: "general" }, PaneItem { title: "Account"; key: "account" } ] }
Property Documentation
children : list
The list of child navigation items displayed when the expander is open. Typically contains PaneItem objects.
enabled : bool
Whether the expander is interactive. Defaults to true. When false, the expander cannot be opened or tapped.
icon : var
The icon source for the expander item. Can be a string name or a URL.
iconColor : color
The color of the item's icon.
iconFamily : string
The icon font family used for the item's icon.
iconSpacing : int
The spacing between the icon and the title text.
key : string
A unique string identifier for this expander item.
title : string
The display title of the expander item.
visible : bool
Whether the expander is visible in the navigation. Defaults to true.
Signal Documentation
void tap()
Emitted when the expander is tapped by the user or programmatically.
Note: The corresponding handler is onTap.
Method Documentation
void tap()
Programmatically triggers the tap action on this expander, toggling its expanded state.