@omnia/fx
Version:
Provide Omnia Fx typings and tooling for clientside Omnia development.
12 lines (11 loc) • 774 B
TypeScript
import { GuidValue, VersionedLayoutDefinition, VersionedLayout } from "@omnia/fx/models";
import { VersionedLayoutEditorApi, VersionedLayoutDefinitionEditorItem } from "@omnia/fx/ux";
export interface VersionedLayoutBladeSettings<T extends VersionedLayoutDefinition = VersionedLayoutDefinition> {
layoutDefinition: new () => T;
appInstanceId?: GuidValue;
onBeforeCreate?: (layout: VersionedLayoutDefinition) => VersionedLayoutDefinition | Promise<VersionedLayoutDefinition>;
checkDeletable?: (layout: VersionedLayout) => Promise<boolean>;
enableAlias?: boolean;
setVersionedLayoutDefinitionEditorItem?: (api: VersionedLayoutEditorApi, layout: VersionedLayout) => Promise<VersionedLayoutDefinitionEditorItem>;
enableBlockLockSettings?: boolean;
}