Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUIButtonView.php
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | final class PHUIButtonView extends AphrontTagView { | ||||
protected function getTagName() { | protected function getTagName() { | ||||
return $this->tag; | return $this->tag; | ||||
} | } | ||||
public function setDropdownMenu(PhabricatorActionListView $actions) { | public function setDropdownMenu(PhabricatorActionListView $actions) { | ||||
Javelin::initBehavior('phui-dropdown-menu'); | Javelin::initBehavior('phui-dropdown-menu'); | ||||
$this->addSigil('phui-dropdown-menu'); | $this->addSigil('phui-dropdown-menu'); | ||||
$this->setMetadata( | $this->setMetadata($actions->getDropdownMenuMetadata()); | ||||
array( | |||||
'items' => $actions, | |||||
)); | |||||
return $this; | return $this; | ||||
} | } | ||||
protected function getTagAttributes() { | protected function getTagAttributes() { | ||||
require_celerity_resource('phui-button-css'); | require_celerity_resource('phui-button-css'); | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |