<?
$properties = Array(
'showHeader' => Array(
'type' => 'list',
'value' => 0,
'label' => 'Show header',
'values' => Array('No', 'Yes'), // creates drop-down list (size is omitted)
// return values are 0 (No) and 1 (Yes)
'show' => Array(1 => Array('header', 'link')) // show header and link properties
// when showHeader values is 1 (Yes)
),
'color' => Array(
'type' => 'list',
'value' => 'Red',
'label' => 'Color',
'size' => 3, // creates list box
'values' => Array(
'White' => '#FFFFFF', // return values are hex color codes
'Red' => '#FF0000',
'Black' => '#000000'
)
),
'header' => Array(
'type' => 'string',
'value' => 'Header',
'label' => 'Header',
),
'link' => Array(
'type' => 'link',
'value' => 1,
'label' => 'Link',
),
);
?>