Warning: This method has been deprecated. Use output_progress_bar_html() instead.
LLMS_Admin_Table::get_progress_bar_html( float $percentage, string $text = '' )
Get the HTML to output a progress bar within a td.
Description Description
Improve ugly tables with a small visual flourish.
Useful when displaying a percentage within a table! Bonus if the table sorts by that percentage column.
Parameters Parameters
- $percentage
-
(float) (Required) The percentage to be displayed.
- $text
-
(string) (Optional) Text to display over the progress bar, defaults to $percentage.
Default value: ''
Return Return
(string)
Source Source
File: includes/abstracts/abstract.llms.admin.table.php
public function get_progress_bar_html( $percentage, $text = '' ) {
ob_start();
$this->output_progress_bar_html( $percentage, $text );
return ob_get_clean();
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 7.7.0 | Use output_progress_bar_html() instead. |
| 3.4.1 | Introduced. |