Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUIListItemView.php
Show All 37 Lines | final class PHUIListItemView extends AphrontTagView { | ||||
public function getHideInApplicationMenu() { | public function getHideInApplicationMenu() { | ||||
return $this->hideInApplicationMenu; | return $this->hideInApplicationMenu; | ||||
} | } | ||||
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; | ||||
} | } | ||||
public function setAural($aural) { | public function setAural($aural) { | ||||
$this->aural = $aural; | $this->aural = $aural; | ||||
return $this; | return $this; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 253 Lines • Show Last 20 Lines |