Interface UmbContentWorkspaceContext<ContentTypeModel, VariantModelType>

interface UmbContentWorkspaceContext<ContentTypeModel, VariantModelType> {
    IS_CONTENT_WORKSPACE_CONTEXT: true;
    isNew: Observable<undefined | boolean>;
    readOnlyState: UmbReadOnlyVariantStateManager;
    routes: UmbWorkspaceRouteManager;
    splitView: UmbWorkspaceSplitViewManager;
    structure: UmbContentTypeStructureManager<ContentTypeModel>;
    unique: Observable<undefined | UmbWorkspaceUniqueType>;
    variantOptions: Observable<UmbVariantOptionModel<VariantModelType>[]>;
    variants: Observable<VariantModelType[]>;
    workspaceAlias: string;
    createPropertyDatasetContext(host: UmbControllerHost, variantId?: UmbVariantId): UmbPropertyDatasetContext;
    destroy(): void;
    finishPropertyValueChange(): void;
    getEntityType(): string;
    getIsNew(): undefined | boolean;
    getName(variantId?: UmbVariantId): undefined | string;
    getPropertyValue<ReturnValue>(alias: string, variantId?: UmbVariantId): undefined | ReturnValue;
    getUnique(): undefined | UmbWorkspaceUniqueType;
    getVariant(variantId: UmbVariantId): undefined | VariantModelType;
    initiatePropertyValueChange(): void;
    isLoaded(): undefined | Promise<unknown>;
    name(variantId?: UmbVariantId): Observable<string>;
    propertyStructureById(id: string): Promise<Observable<undefined | UmbPropertyTypeModel>>;
    propertyValueByAlias<ReturnValue>(alias: string, variantId?: UmbVariantId): Promise<undefined | Observable<undefined | ReturnValue>>;
    requestSubmit(): Promise<void>;
    setName(name: string, variantId?: UmbVariantId): void;
    setPropertyValue(alias: string, value: unknown, variantId?: UmbVariantId): Promise<void>;
    variantById(variantId: UmbVariantId): Observable<undefined | VariantModelType>;
}

Type Parameters

Hierarchy (view full)

Implemented by

Properties

IS_CONTENT_WORKSPACE_CONTEXT: true
isNew: Observable<undefined | boolean>
unique: Observable<undefined | UmbWorkspaceUniqueType>
workspaceAlias: string

Methods

""