Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 18... Línea 18...
18
    @template core/bulkactions/bulk_action_trigger
18
    @template core/bulkactions/bulk_action_trigger
Línea 19... Línea 19...
19
 
19
 
Línea 20... Línea 20...
20
    Renders a trigger element for a given bulk action.
20
    Renders a trigger element for a given bulk action.
-
 
21
 
21
 
22
    Context variables required for this template:
Línea 22... Línea 23...
22
    Context variables required for this template:
23
    * showindropdown - Whether the action is displayed under a 'More' dropdown or as a separate button.
23
    * none
24
    * isfirst - Whether the action is the first one in the list.
-
 
25
 
-
 
26
    Example context (json):
24
 
27
    {
25
    Example context (json):
28
        "showindropdown": false,
-
 
29
        "isfirst": true
-
 
30
    }
-
 
31
}}
-
 
32
{{#showindropdown}}
26
    {
33
    <a class="dropdown-item" href="#" data-action="{{$action}}{{/action}}" role="menuitem">{{$title}}{{/title}}</a>
27
    }
34
{{/showindropdown}}
28
}}
35
{{^showindropdown}}
29
<button
36
    <button
30
    type="button"
37
        type="button"
-
 
38
        class="btn py-0 d-flex flex-column"
31
    class="btn py-0 d-flex flex-column"
39
        data-action="{{$action}}{{/action}}"
32
    data-action="{{$action}}{{/action}}"
40
        title="{{$title}}{{/title}}"
33
    title="{{$title}}{{/title}}"
41
        {{^isfirst}}tabindex="-1"{{/isfirst}}
34
>
42
    >
-
 
43
        <span class="w-100 ps-2">{{$icon}}{{/icon}}</span>