Meego Wiki
Views

AppPage API Snapshot

From MeeGo wiki
Revision as of 12:26, 28 April 2011 by Pascaldietz (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Description

This is a basic meego-ux-components page. It provides functionality and access to the Windows ActionMenu and should be the base for every page used.

API Properties

string pageTitle
Sets the title of the page displayed in the toolbar.
variant actionMenuModel
Holds the action menus clickable entries.
variant actionMenuPayload
Holds the action menus data for each entry.
bool enableCustomActionMenu
Enables custom action menus set by the AppPage.
bool fullScreen
Hides the statusbar if true.
bool fullContent
Hides the statusbar and the toolbar if true.
bool actionMenuHighlightSelection
Set true if the actionMenu should highlight the last selected item
bool actionMenuOpen
True if the actionMenu is currently open
bool backButtonLocked
Set to true to lock the backButton
string actionMenuTitle
Holds the title of the actionMenu
string lockOrientationIn
This property can be used to lock the window in a given orientation. Possible values are:
"landscape"
"portrait"
"invertedLandscape"
"invertedPortrait"
Every other value will unlock the orientation. Default is "".

Signals

actionMenuTriggered
Is emitted when the an action menu entry was selected and returns the corresponding item from the payload.
actionMenuIconClicked
Provides the context menu position for own action menus.
activating
Signal that fires when the page is about to be shown.
activated
Signal that fires when the page has been shown.
deactivating
Signal that fires when the page is being hidden.
deactivated
Signal that fires when the page has been hidden.
focusChanged
Signal that fires if the focus was changed.
Parameter:
  • bool appPageHasFocus, true if the page has focus.

Functions

-

Example

AppPage {
    id: singlePage

    pageTitle: "My first page"

    actionMenuModel: [ "First choice", "Second choice" ]
    actionMenuPayload: [ 1, 2 ]

    onActionMenuTriggered: {
        // an action menu entry was clicked, action menu hidden
        // and '1' or '2' returned in selectedItem
    }
}
Personal tools