Constants

CTX_DEFAULT

CTX_DEFAULT

CTX_PRIMARY

CTX_PRIMARY

CTX_SUCCESS

CTX_SUCCESS

CTX_INFO

CTX_INFO

CTX_WARNING

CTX_WARNING

CTX_DANGER

CTX_DANGER

CTX_DEFAULT_CLASS

CTX_DEFAULT_CLASS

CTX_PRIMARY_CLASS

CTX_PRIMARY_CLASS

CTX_SUCCESS_CLASS

CTX_SUCCESS_CLASS

CTX_INFO_CLASS

CTX_INFO_CLASS

CTX_WARNING_CLASS

CTX_WARNING_CLASS

CTX_DANGER_CLASS

CTX_DANGER_CLASS

Properties

$context

$context : string

easily make a widget more meaningful to a particular context by adding any of the contextual state classes

Type

string

$striped

$striped : boolean

Type

boolean — indicates whether the bar is striped.

$animated

$animated : boolean

Type

boolean — indicates whether the bar is animated.

$percent

$percent : integer

Type

integer — the amount of progress in percent.

$htmlOptions

$htmlOptions : array

Type

array — the HTML attributes for the widget container.

$content

$content : string

Type

string — div content

$stacked

$stacked : array

Type

array — set to an array of progress bar values to display stacked progress bars <pre> 'stacked'=>array( array('context' => 'info|success|warning|danger', 'percent'=>'30', 'htmlOptions'=>array('class'=>'custom')), array('context' => 'info|success|warning|danger', 'percent'=>'30'), ) </pre>

$progressClasses

$progressClasses

$progressBarClasses

$progressBarClasses

Methods

init()

init()

### .init()

Initializes the widget.

run()

run()

### .run()

Runs the widget.

addCssClass()

addCssClass(array $htmlOptions, string $class)

Utility function for appending class names for a generic $htmlOptions array.

Parameters

array $htmlOptions
string $class

isValidContext()

isValidContext( $context)

Parameters

$context

getContextClass()

getContextClass(string $context)

Parameters

string $context