API Documentation

Documentation for developing SailfishOS applications

MenuLabel QML Type

A static label shown at the beginning of a pulley menu More...

Import Statement: import Sailfish.Silica 1.0


Detailed Description

A MenuLabel is a non-interactive label within a PullDownMenu or PushUpMenu.

Set the text property to define the label text:

 import Sailfish.Silica 1.0

 PullDownMenu {
     MenuItem { text: "Option 1" }
     MenuItem { text: "Option 2" }

     MenuLabel { text: "Informational label" }

Property Documentation

color : color

This property holds the color to display the label. The default color is Theme.highlightColor.

text : string

This property holds the text to display in the MenuLabel.

verticalOffset : real

This property holds the vertical offset to apply when drawing the label.

We use cookies to improve your user experience and to help us to develop our services. By continuing to browse the site, you approve of our use of cookies.