Advanced

ADRUID ADVANCED SECTION

Popup list component

A popup list component is a graphical component which displays a popup menu with predefined values. (screenshot)

BEGIN COMPONENT
TITLE: Server type

BEGIN POPLIST
LABEL: Server type :
ID: %arg
VALUE: standalone
VALUE: inetd
END POPLIST

BEGIN GENERATE httpd.conf
ServerType %arg
END GENERATE

END COMPONENT

A popup list component is characterized by a BEGIN POPLIST/END POPLIST section. It contains a LABEL and an ID which indicates respectively the text displayed next to the popup menu and an ID (used to identify the fields for the generation part). Then follows a list of VALUEs which are displayed in the popup menu.

A GENERATE section indicates what to generate and in which file this information should be generated
(BEGIN GENERATE YourFileName)