40 $this->output = $output;
42 $output->
addModules(
'mediawiki.checkboxtoggle' );
46 private function checkboxLink( $checkboxType ) {
49 'a', [
'class' =>
'mw-checkbox-' . $checkboxType,
'role' =>
'button',
'tabindex' => 0 ],
50 $this->output->msg(
'checkbox-' . $checkboxType )->text()
60 $this->checkboxLink(
'all' ),
61 $this->checkboxLink(
'none' ),
62 $this->checkboxLink(
'invert' ),
68 'class' =>
'mw-checkbox-toggle-controls',
70 $this->output->msg(
'checkbox-select' )
71 ->rawParams( $this->output->getLanguage()->commaList( $links ) )->escaped()
77class_alias( ListToggle::class,
'ListToggle' );
This is one of the Core classes and should be read at least once by any new developers.
addModules( $modules)
Load one or more ResourceLoader modules on this page.
addModuleStyles( $modules)
Load the styles of one or more style-only ResourceLoader modules on this page.