14 parent::__construct( $config );
16 $this->addClasses( [
'mw-collapsibleFieldsetLayout',
'mw-collapsible' ] );
17 if ( $config[
'collapsed'] ??
false ) {
18 $this->addClasses( [
'mw-collapsed' ] );
20 $this->header->addClasses( [
'mw-collapsible-toggle' ] );
21 $this->group->addClasses( [
'mw-collapsible-content' ] );
23 $this->header->appendContent(
24 new \OOUI\IconWidget( [
26 'label' =>
wfMessage(
'collapsible-expand' )->text(),
28 new \OOUI\IconWidget( [
30 'label' =>
wfMessage(
'collapsible-collapse' )->text(),
34 $this->header->setAttributes( [