FluentUI/Gallery/res/qml/page/T_Expander.qml
yxdy a44db97aa3
Some checks failed
Gallery App Build / Windows (push) Has been cancelled
Gallery App Build / macOS (push) Has been cancelled
Gallery App Build / Ubuntu (push) Has been cancelled
init
2025-02-12 10:31:20 +08:00

41 lines
795 B
QML

import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import FluentUI.Controls
import FluentUI.impl
import Gallery
ScrollablePage {
title: qsTr("Expander")
CardHighlight{
Layout.fillWidth: true
codeSnippet:
`import QtQuick
import QtQuick.Controls
import FluentUI.Controls
import FluentUI.impl
Expander{
leading: Label{
text: "This text is in leading"
horizontalAlignment: Qt.AlignHCenter
verticalAlignment: Qt.AlignVCenter
}
header: Label{
text: "This text is in header"
verticalAlignment: Qt.AlignVCenter
}
content: Label{
text: "This text is in content"
horizontalAlignment: Qt.AlignHCenter
verticalAlignment: Qt.AlignVCenter
height: 300
}
}
`}
}