1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-29 00:40:57 +01:00
phorge-phorge/src/view/phui/PHUITextView.php
Chad Little 8872d5b6d1 PHUI Text View
Summary: Adds basic colors and text styles for shorthand use.

Test Plan: UIExamples

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5751
2013-04-22 14:28:23 -07:00

20 lines
335 B
PHP

<?php
final class PHUITextView extends AphrontTagView {
private $text;
public function setText($text) {
$this->appendChild($text);
return $this;
}
public function getTagName() {
return 'span';
}
public function getTagAttributes() {
require_celerity_resource('phui-text-css');
return array();
}
}