Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5981921
HorizontalLayout.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
749 B
Referenced Files
None
Subscribers
None
HorizontalLayout.php
View Options
<?php
namespace
OOUI
;
/**
* HorizontalLayout arranges its contents in a single line (using `display: inline-block` for its
* items), with small margins between them.
*/
class
HorizontalLayout
extends
Layout
{
use
GroupElement
;
/**
* @param array $config Configuration options
* - Widget[]|Layout[] $config['items'] Widgets or other layouts to add to the layout.
*/
public
function
__construct
(
array
$config
=
[]
)
{
// Parent constructor
parent
::
__construct
(
$config
);
// Traits
$this
->
initializeGroupElement
(
array_merge
(
[
'group'
=>
$this
],
$config
)
);
// Initialization
$this
->
addClasses
(
[
'oo-ui-horizontalLayout'
]
);
if
(
isset
(
$config
[
'items'
]
)
)
{
$this
->
addItems
(
$config
[
'items'
]
);
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 22:07 (1 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2e/66/5da7084050853a1208b0a60733ff
Default Alt Text
HorizontalLayout.php (749 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment