6 * HorizontalLayout arranges its contents in a single line (using `display: inline-block` for its
7 * items), with small margins between them.
9 class HorizontalLayout extends Layout {
13 * @param array $config Configuration options
14 * @param Widget[]|Layout[] $config['items'] Widgets or other layouts to add to the layout.
16 public function __construct( array $config = [] ) {
18 parent::__construct( $config );
21 $this->initializeGroupElement( array_merge( $config, [ 'group' => $this ] ) );
24 $this->addClasses( [ 'oo-ui-horizontalLayout' ] );
25 if ( isset( $config['items'] ) ) {
26 $this->addItems( $config['items'] );