Warning, /maui/mauikit/demo.6/src/controls/SideBarViewPage.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick
0002 import QtQuick.Controls
0003 import QtQuick.Layouts
0004 
0005 import org.mauikit.controls as Maui
0006 
0007 DemoPage
0008 {
0009     id: control
0010     title: i18n("SideBarView")
0011 
0012     Maui.SectionGroup
0013     {
0014         title: control.title
0015         spacing: control.spacing
0016 
0017         DemoSection
0018         {
0019             title: i18n("Static")
0020             column: Maui.SideBarView
0021             {
0022                 id: _sideBar
0023 
0024                 Layout.fillWidth: true
0025                 implicitHeight: 500
0026 
0027                 sideBarContent: Pane
0028                 {
0029                     anchors.fill: parent
0030                 }
0031 
0032                 Maui.Page
0033                 {
0034                     anchors.fill: parent
0035 
0036                     headBar.leftContent: ToolButton
0037                     {
0038                         icon.name: _sideBar.sideBar.visible ? "sidebar-collapse" : "sidebar-expand"
0039                         onClicked: _sideBar.sideBar.toggle()
0040                     }
0041                 }
0042             }
0043         }
0044     }
0045 }