Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102668153
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
Sun, Feb 23, 01:40
Size
841 B
Mime Type
text/x-php
Expires
Tue, Feb 25, 01:40 (1 d, 13 h)
Engine
blob
Format
Raw Data
Handle
24388433
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'
=>
'workboard-shadow lock-scroll-y-while-dragging'
,
),
$view
);
return
$board
;
}
}
Event Timeline
Log In to Comment