All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.app.shared.components.layout.menuItem.ts Maven / Gradle / Ivy

The newest version!
/*
 * SPDX-FileCopyrightText: 2017-2024 Enedis
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 */

import { Authorization } from '@model';
import { FeatureName } from '@core/feature/feature.model';

export class MenuItem {
    label: string;
    link?: string;
    click?: Function;
    iconClass?: string;
    secondaryIconClass?: string;
    authorizations?: Authorization[];
    feature?: FeatureName;
    options?: { id: string, label: string }[];
    children?: MenuItem[] = [];
    disabled?: boolean = false;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy