Member Junction
    Preparing search index...

    Interface MJApplicationEntity_IDefaultNavItem

    Describes a single navigation item in an Application's default tab bar.

    Stored as a JSON array in the DefaultNavItems column of the Applications entity. CodeGen emits a strongly-typed DefaultNavItemsObject accessor on ApplicationEntity that returns MJApplicationEntity_IDefaultNavItem[].

    When a user opens an application for the first time (or has no saved state), BaseApplication.GetNavItems() parses this array to create the initial set of tabs. Each item maps to either a persisted Dashboard (via RecordID) or a custom component registered with @RegisterClass(BaseResourceComponent, DriverClass).

    Exactly one item should have isDefault: true to indicate which tab is focused on load.

    interface MJApplicationEntity_IDefaultNavItem {
        DriverClass?: string;
        Icon: string;
        isDefault?: boolean;
        Label: string;
        RecordID?: string;
        ResourceType: string;
    }
    Index

    Properties

    DriverClass?: string

    For Custom resources, the registered driver class name

    Icon: string

    Font Awesome icon class (e.g., "fa-solid fa-database")

    isDefault?: boolean

    Whether this is the default tab when the app opens

    Label: string

    Display label for the navigation item

    RecordID?: string

    For Dashboard resources, the ID of the dashboard record

    ResourceType: string

    Type of resource: "Dashboards", "Custom", etc.