Member Junction
    Preparing search index...

    Class BaseViewTypeDescriptorAbstract

    Abstract base class for all view-type descriptors.

    Concrete descriptors extend this and register themselves with the ClassFactory:

    @RegisterClass(BaseViewTypeDescriptor, 'GridViewType')
    export class GridViewType extends BaseViewTypeDescriptor {
    readonly Name = 'GridViewType';
    readonly DisplayName = 'Grid';
    readonly Icon = 'fa-solid fa-table';
    readonly RendererComponent = EntityDataGridComponent;
    IsAvailableFor(): boolean { return true; }
    }

    The ViewTypeEngine resolves descriptors by DriverClass name using MJGlobal.Instance.ClassFactory.CreateInstance(BaseViewTypeDescriptor, driverClass).

    NOTE: This class is registered with the ClassFactory itself (via subclasses) and is intentionally NOT decorated — only concrete subclasses carry @RegisterClass.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    DisplayName: string

    User-facing label shown in the view-mode switcher (e.g. "Grid", "Tag Cloud").

    Icon: string

    Font Awesome icon class shown in the switcher (e.g. "fa-solid fa-table").

    Name: string

    Stable internal key for the view type — matches the DriverClass column on the MJ: View Types entity and the @RegisterClass registration key (e.g. "GridViewType", "CardsViewType").

    PropSheetComponent?: Type<unknown>

    Optional Angular component class for this view type's configuration prop-sheet (honors IViewPropSheet). Undefined when the view type has no configurable options.

    RendererComponent: Type<unknown>

    The Angular component class that renders this view type. The host instantiates / mounts this component and feeds it data per the IViewRenderer contract.

    UsesCanonicalGridState: boolean = false

    Default: this view type uses its own opaque per-view-type config (stored in DisplayState.viewTypeConfigs). Override to true in a view type that renders the canonical grid columns (see IViewTypeDescriptor.UsesCanonicalGridState).

    Methods