With the new PageHeader, it is possible to show/hide the header for each
column individually. See the introduction here:
https://developer.ubuntu.com/en/blog/2016/02/24/pageheader-tutorial/


Example code to show/hide the header:

import QtQuick 2.4
import Ubuntu.Components 1.3

MainView {
    width: units.gu(100)
    height: units.gu(70)

    AdaptivePageLayout {
        id: apl
        anchors.fill: parent
        primaryPage: page0

        Page {
            id: page0
            header: PageHeader { title: "aloha" }
            Button {
                anchors.centerIn: parent
                text: "add page -->"
                onClicked: apl.addPageToNextColumn(page0, page1)
            }
        }

        Page {
            id: page1
            header: PageHeader {
                title: "You can hide me"
                exposed: false
            }
            Switch {
                id: exposedSwitch
                anchors.centerIn: parent
                checked: page1.header.exposed
                onTriggered: page1.header.exposed = !page1.header.exposed
            }
            Label {
                anchors {
                    right: exposedSwitch.left
                    verticalCenter: exposedSwitch.verticalCenter
                }
                text: "Show header: "
            }
        }
    }
}


** Changed in: ubuntu-ui-toolkit (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1513003

Title:
  AdaptivePageLayout doesn't allow hiding a Page header

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1513003/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to