Version 4.2.6
 —  Natural for Ajax  —

NJX:BUTTONITEMLIST

The NJX:BUTTONITEMLIST control is used to arrange buttons in a horizontal line. In contrast to the NJX:BUTTONITEMLISTFIX control, the number of buttons in an NJX:BUTTONITEMLIST control can be changed dynamically (up to an upper limit defined at design time), but the layout of the buttons cannot be configured individually. Instead, all buttons in the list are configured with the same layout.

The following topics are covered below:


Example

Example

The XML code for the example looks as follows:

<rowarea name="Dynamic Buttonlist">
    <itr>
        <njx:buttonitemlist buttonlistprop="dynbuttons"
        buttoncount="10" hdist="10">
            <njx:buttonitem width="100">
            </njx:buttonitem>
        </njx:buttonitemlist>
    </itr>
</rowarea>

Top of page

Adapter Interface

DEFINE DATA PARAMETER
1 DYNBUTTONS (1:*)
2 METHOD (A) DYNAMIC
2 NAME (A) DYNAMIC
2 TITLE (A) DYNAMIC
2 VISIBLE (L)
END-DEFINE

Top of page

Built-in Events

The buttons in the NJX:BUTTONITEMLIST control (NJX:BUTTONITEM controls) behave like BUTTON controls.

Top of page

Properties

Basic
buttonlistprop

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

Obligatory  
buttoncount

Maximum count of buttons in the buttonlist.

If no buttoncount is defined then a default of 10 is assigned.

Optional  
hdist

Horizontal distance between the buttons. Can be specified either in pixels or as percentage value.

If no width is defined then a default width of 2 pixels is assigned.

Optional  

Top of page