mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-65928 core: Create a checkbox_toggleall renderable
This commit is contained in:
parent
0a3d306358
commit
6259a9d065
3 changed files with 175 additions and 0 deletions
|
@ -4711,6 +4711,16 @@ EOD;
|
|||
$data = $bar->export_for_template($this);
|
||||
return $this->render_from_template('core/progress_bar', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders element for a toggle-all checkbox.
|
||||
*
|
||||
* @param \core\output\checkbox_toggleall $element
|
||||
* @return string
|
||||
*/
|
||||
public function render_checkbox_toggleall(\core\output\checkbox_toggleall $element) {
|
||||
return $this->render_from_template('core/checkbox-toggleall', $element->export_for_template($this));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue