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.


Top ↑

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: ''


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/abstracts/abstract.llms.admin.table.php

							</a>
						<?php else : ?>
							<?php echo $data['title']; ?>
						<?php endif; ?>
					<?php else : ?>
						<?php echo $data; ?>
					<?php endif; ?>


Top ↑

Changelog Changelog

Changelog
Version Description
3.4.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.