12 parent::__construct( $config );
14 $this->addClasses( [
'mw-collapsibleFieldsetLayout',
'mw-collapsible' ] );
15 if ( isset( $config[
'collapsed' ] ) && $config[
'collapsed' ] ) {
16 $this->addClasses( [
'mw-collapsed' ] );
18 $this->header->addClasses( [
'mw-collapsible-toggle' ] );
19 $this->group->addClasses( [
'mw-collapsible-content' ] );
21 $this->header->appendContent(
22 new OOUI\IconWidget( [
24 'label' =>
wfMessage(
'collapsible-expand' )->text(),
26 new OOUI\IconWidget( [
28 'label' =>
wfMessage(
'collapsible-collapse' )->text(),
32 $this->header->setAttributes( [