*/ $sections['Observer'] = array( 'descr' => '', 'basename' => 'example_observer_', 'pages' => array( 'attach_element' => array( 'title' => 'Attach to an element', 'descr' => 'This example shows how to attach an observer to a single element.' ), 'attach_elements' => array( 'title' => 'Attach to all elements', 'descr' => 'This example shows how to attach an observer to all elements in the form in one go.' ), 'attach_form' => array( 'title' => 'Attach to the form', 'descr' => 'This example shows how to attach an observer to the form itself.' ), 'readonly' => array( 'title' => 'Readonly finished', 'descr' => 'This example shows how to display fields that have already been validated successfully as readonly.' ), 'error_attributes' => array( 'title' => 'Error attributes', 'descr' => 'This example shows how to change any attribute of an element that has validation errors. By setting a different style, this can be easily used to mark such fields with a different background color for ex.' ), 'combining' => array( 'title' => 'Combining observers', 'descr' => 'This example shows how you can combine several observers to create complex form behaviors. Here for example, an erroneous field is shown flashy red, and directly switched to readonly when it is complete.' ), ) ); ?>