function label($text, $font)
{
    $label = new Label($text, $font, NULL, 0);
    $label->setBackgroundColor(new Color(255, 255, 255, 25));
    $label->border->show();
    $label->setPadding(1, 0, 0, 0);
    return $label;
}
Пример #2
0
 public function addLabel(Label $label)
 {
     $label->setBackgroundColor($this->colorBg);
     $this->labels[] = $label;
 }