public setTooltip ( string $column, string $message ) | ||
$column | string | The name of the column to set the tooltop for. |
$message | string | The key for the message (will be parsed through BackendLanguage::msg). |
public function setTooltip($column, $message)
{
// get the column
$instance = $this->getColumn($column);
// build the value for the tooltip
$value = BackendLanguage::msg($message);
// reset the label
$instance->setLabel($instance->getLabel() . '<abbr class="help">?</abbr><span class="tooltip hidden" style="display: none;">' . $value . '</span>');
}