Fluid 1.3.0
Material Design for QtQuick and Qml
Loading...
Searching...
No Matches
Action Class Reference

Describes a reusable Fluid action. More...

Inheritance diagram for Action:

Detailed Description

Describes a reusable Fluid action.

Action extends the Qt Quick Templates action API with optional supporting, trailing, and badge content used by Material controls. The inherited properties provide the primary text, icon, enabled and checkable state, shortcut, and triggered signal.

Menu's default delegate presents the extended fields automatically. Other controls may use or ignore them according to their supported layout.

MD.Menu {
MD.Action {
text: qsTr("Open")
supportingText: qsTr("Open the selected document")
trailingText: qsTr("Local")
badgeContent: 3
onTriggered: openDocument()
}
}
See also
Menu, MenuItem, AppBarAction, RichToolTip

Definition at line 30 of file Action.qml.


The documentation for this class was generated from the following file: