Page MenuHomestyx hydra

PhabricatorUIListFilterExample.php
No OneTemporary

PhabricatorUIListFilterExample.php

<?php
final class PhabricatorUIListFilterExample extends PhabricatorUIExample {
public function getName() {
return 'ListFilter';
}
public function getDescription() {
return hsprintf(
'Use <tt>AphrontListFilterView</tt> to layout controls for filtering '.
'and manipulating lists of objects.');
}
public function renderExample() {
$filter = new AphrontListFilterView();
$form = new AphrontFormView();
$form->setNoShading(true);
$form->setUser($this->getRequest()->getUser());
$form
->appendChild(
id(new AphrontFormTextControl())
->setLabel('Query'))
->appendChild(
id(new AphrontFormSubmitControl())
->setValue('Search'));
$filter->appendChild($form);
return $filter;
}
}

File Metadata

Mime Type
text/x-php
Expires
Wed, Nov 26, 8:26 PM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
420251
Default Alt Text
PhabricatorUIListFilterExample.php (789 B)

Event Timeline