Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
{{!This file is part of Moodle - http://moodle.org/Moodle is free software: you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation, either version 3 of the License, or(at your option) any later version.Moodle is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with Moodle. If not, see <http://www.gnu.org/licenses/>.}}{{!@template theme_boost/courseindexdrawercontrolsThis template will render "expand-all" and "collapse-all" buttons for the course index drawer.Example context (json):{}}}<div id="courseindexdrawercontrols" class="dropdown"><button class="btn btn-icon rounded-circle mx-2"type="button"data-toggle="dropdown"aria-haspopup="true"aria-expanded="false"title="{{#str}}courseindexoptions, courseformat{{/str}}"><i class="icon fa fa-ellipsis-v fa-fw m-0" aria-hidden="true"></i></button><div class="dropdown-menu dropdown-menu-right"><a class="dropdown-item"href="#"data-action="expandallcourseindexsections">{{#pix}} t/angles-down, core {{/pix}}{{#str}}expandall{{/str}}</a><a class="dropdown-item"href="#"data-action="collapseallcourseindexsections"><span class="dir-rtl-hide">{{#pix}} t/angles-right, core {{/pix}}</span><span class="dir-ltr-hide">{{#pix}} t/angles-left, core {{/pix}}</span>{{#str}}collapseall{{/str}}</a></div></div>{{#js}}require(['theme_boost/courseindexdrawercontrols'], function(component) {component.init('courseindexdrawercontrols');});{{/js}}