MDL-65928 core: Create a checkbox_toggleall renderable

This commit is contained in:
Jun Pataleta 2019-03-01 14:43:25 +08:00
parent 0a3d306358
commit 6259a9d065
3 changed files with 175 additions and 0 deletions

View file

@ -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));
}
}
/**