Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
{{!
2
    This file is part of Moodle - http://moodle.org/
3
 
4
    Moodle is free software: you can redistribute it and/or modify
5
    it under the terms of the GNU General Public License as published by
6
    the Free Software Foundation, either version 3 of the License, or
7
    (at your option) any later version.
8
 
9
    Moodle is distributed in the hope that it will be useful,
10
    but WITHOUT ANY WARRANTY; without even the implied warranty of
11
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
    GNU General Public License for more details.
13
 
14
    You should have received a copy of the GNU General Public License
15
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
16
}}
17
{{!
18
    @template tool_componentlibrary/examples/toggle/example
19
 
20
    Template for toggle element used as a block example
21
 
22
    Example context (json):
23
    {
24
    }
25
}}
26
<div id="toggle-example">
27
    <h1>Toggle block</h1>
28
    <span>This is a simple example using toggle template as a block.</span>
29
    {{< core/toggle }}
30
        {{$id}}example-toggle-3{{/id}}
31
        {{$extraclasses}}mt-3{{/extraclasses}}
32
        {{$attributes}}
33
            data-action="toggle-status"
34
            data-action-id="3"
35
            checked
36
            disabled
37
        {{/attributes}}
38
        {{$label}}Enable/disable status{{/label}}
39
        {{$labelclasses}}sr-only{{/labelclasses}}
40
    {{/ core/toggle }}
41
</div>