ComposerSheet

Much like the DefaultSheet the Composer Sheet allows an application to insert a content view over the focused view without disrupting the navigation pattern. However the Composer Sheet is optimised for scenarios in which user content is at risk of corruption, most often (but not solely) when creating or editing content (e.g compose new message). There are two ways to dismiss it: user confirming the manipulation or user cancelling the manipulation, using the "confirm" and "cancel" buttons shown in the right and left side of the composer header. More...

Inherits SheetBase

Signals

Detailed Description

Example:

import Ubuntu.Components 0.1
import Ubuntu.Components.Popups 0.1

Item {
    Component {
        id: composerSheet
        ComposerSheet {
            id: sheet
            title: "Composer sheet"
            Label {
                text: "A composer sheet has cancel and confirm buttons."
            }
            onCancelClicked: PopupUtils.close(sheet)
            onConfirmClicked: PopupUtils.close(sheet)
        }
    }

    Button {
        anchors.centerIn: parent
        text: "composer"
        width: units.gu(16)
        onClicked: PopupUtils.open(composerSheet)
    }
}

Signal Documentation

ComposerSheet::cancelClicked()

This documentation is under development and is subject to change.

The user clicked the "cancel" button.


ComposerSheet::confirmClicked()

This documentation is under development and is subject to change.

The user clicked the "confirm" button.