aboutsummaryrefslogtreecommitdiff
path: root/resources/assets/javascripts/lib/action.ts
blob: 4d247f67b398d547d2ee2fb6fd7626e691dd25c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
 * The Action class represents an action in Stud.IP with its usual attributes.
 */
class Action
{
    /**
     * The URL for the action.
     */
    url: string;

    label: string;

    icon_name: string;

    constructor(
        url: string,
        label: string,
        icon_name: string = ''
        ) {
        this.url        = url;
        this.label      = label;
        this.icon_name  = icon_name;
    }
}

export {Action};