Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F118215319
PHUIWorkboardView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jun 18, 12:25
Size
822 B
Mime Type
text/x-php
Expires
Fri, Jun 20, 12:25 (2 d)
Engine
blob
Format
Raw Data
Handle
26819823
Attached To
rPH Phabricator
PHUIWorkboardView.php
View Options
<?php
final
class
PHUIWorkboardView
extends
AphrontTagView
{
private
$panels
=
array
();
private
$actions
=
array
();
public
function
addPanel
(
PHUIWorkpanelView
$panel
)
{
$this
->
panels
[]
=
$panel
;
return
$this
;
}
protected
function
getTagAttributes
()
{
return
array
(
'class'
=>
'phui-workboard-view'
,
);
}
protected
function
getTagContent
()
{
require_celerity_resource
(
'phui-workboard-view-css'
);
$view
=
new
AphrontMultiColumnView
();
$view
->
setGutter
(
AphrontMultiColumnView
::
GUTTER_MEDIUM
);
foreach
(
$this
->
panels
as
$panel
)
{
$view
->
addColumn
(
$panel
);
}
$board
=
javelin_tag
(
'div'
,
array
(
'class'
=>
'phui-workboard-view-shadow'
,
'sigil'
=>
'lock-scroll-while-dragging'
,
),
$view
);
return
$board
;
}
}
Event Timeline
Log In to Comment