11 parent::__construct( $config );
13 $this->addClasses( [
'mw-collapsible' ] );
14 if ( isset( $config[
'collapsed' ] ) && $config[
'collapsed' ] ) {
15 $this->addClasses( [
'mw-collapsed' ] );
17 $this->header->addClasses( [
'mw-collapsible-toggle' ] );
18 $this->group->addClasses( [
'mw-collapsible-content' ] );
20 $this->header->appendContent(
21 new OOUI\IconWidget( [
23 'label' =>
wfMessage(
'collapsible-expand' )->text(),
25 new OOUI\IconWidget( [
27 'label' =>
wfMessage(
'collapsible-collapse' )->text(),
31 $this->header->setAttributes( [