PEAR::HTML::Progress example: Custom String
Author: Laurent Laville
Description: how to customize percent information string

examples

# Custom String

$Date: 2005/07/25 10:25:30 $

- Introduction
- Render options
- Ouput
- PHP source syntax highlight
- Play demo

## Introduction

This example requires :

- PEAR::HTML_Progress 1.2.2 or better.

This example will run a horizontal ProgressBar with custom string.

There are 10 cells with default values:

- active-color = #006600
- inactive-color = #CCCCCC
- cell width = 15px
- cell height = 20px
- cell spacing = 2px

Percent text info is left aligned on a white background area of 350 pixels width.

[Top]

## Render options

Here are options to build this progress bar string (percent text info):

    width = 350
    align = left

HTML_Progress_UI::setStringAttributes()

[Top]

## Output

### Screenshot

[Top]

## PHP source syntax highlight

Open source listing in a new window.

[Top]

## Play demo

Run the script.

[Top]