PEAR Progress2 logo

HTML_Progress2 : The Definitive Guide

Name

HTML_Progress2::setLabelAttributes — Sets label attributes.

Synopsis

      require_once 'HTML/Progress2.php';
     
void HTML_Progress2::setLabelAttributes( $name,  
  $attributes);  
string   $name;
mixed   $attributes;

Description

Defines attributes (font, color, size, alignement ...) of an existing label. Whether an attribute is not specified, previous or default value is used instead.

Defaults are:

  • class = progressPercentLabel%s

  • width = 50

  • height = 0

  • font-size = 11

  • font-family = Verdana, Tahoma, Arial

  • font-weight = normal

  • color = #000000

  • background-color = transparent

  • align = right

  • valign = right

Parameter

string $name

progress label id.

mixed $attributes

Associative array or string of HTML tag attributes

See

see HTML_Progress2::getLabelAttributes , HTML_Progress2::addLabel

Throws

throws HTML_PROGRESS2_ERROR_INVALID_INPUT

Note

since 2.0.0

This function can not be called statically.

HTML_Progress2 : The Definitive Guide v 2.4.0 : April 20, 2007