Version 4.2.6
 —  Natural for Ajax  —

DLMENU

This document covers the following topics:


Example

The example looks as follows:

graphics/image153.png

A double-line menu is displayed. When selecting a menu item, then its text is written to the status bar.

The XML layout definition is:

<page model="menue_02_dl_Adapter">
    <titlebar name="Double Line Menu">
    </titlebar>
    <dlmenu menuprop="menuData">
    </dlmenu>
    <header withdistance="false">
        <button name="Save">
        </button>
    </header>
    <pagebody>
    </pagebody>
    <statusbar withdistance="false">
    </statusbar>
</page>

The DLMENU control is positioned directly following the title bar. In its property menuprop, it holds a binding to the property menuData.

Top of page

Adapter Interface

DEFINE DATA PARAMETER
1 ITEMS (1:*)
2 LEVEL (I4)
2 METHOD (U) DYNAMIC
2 TEXT (U) DYNAMIC
END-DEFINE

Top of page

Built-in Events

items.onSelectSubItem

Top of page

Properties

Basic
menuprop

Name of the adapter parameter that represents the control in the adapter.

Obligatory  
textid

Multi language dependent text that is displayed inside the control. The "textid" is translated into a corresponding string at runtime.

Do not specify a "name" inside the control if specifying a "textid".

Optional  
align

Horizontal alignment of the control's content.

Optional

left

center

right

onlyoneline

If set to "true" then the DLMENU control only contains its top line - there is no second line below. Default is "false".

Optional

true

false

cellseparatoronly

If set to "true" then only a very thin cell separator is added between two menu items. Otherwise the separation is rendered explicitely.

Optional

true

false

comment

Comment without any effect on rendering and behaviour. The comment is shown in the layout editor's tree view.

Optional  

Top of page