import { LimeWebComponentContext } from '../../core'; import { LimeType } from '../../limetype'; import { LimeObjectData } from '../limeobject'; import { AnyCommand } from '../../commandbus'; declare const COMMAND_ID: "limeobject.create-dialog"; declare module '../../commandbus' { interface CommandRegistry { [COMMAND_ID]: CreateLimeobjectDialogCommand; } } /** * Open a dialog for creating a new limeobject or editing a specific limeobject * * The create dialog is implemented as a command so a plugin can easily replace the original dialog with a custom one. * Check out the "Hello, Event!" tutorial for a detailed description on how to implement your own create dialog. * * This dialog also useful to edit a limeobject that already exists * * @id `limeobject.create-dialog` * @public * @group Lime objects */ export declare class CreateLimeobjectDialogCommand { /** * The limetype of the object to create */ limetype: LimeType; /** * Default data to populate the form with */ limeobject?: LimeObjectData; /** * Specifies if routing to limeobject should be done after confirmation */ route?: boolean; title?: string; subtitle?: string; context?: LimeWebComponentContext; /** * When `context` is used, this is the name of the relation on the * reference {@link LimeObject} to use when auto attaching the new object. * */ autoAttachRelation?: string; /** * Specifies any command that can be used to save the result of the dialog. * If not specified, it will default to the {@link SaveLimeObjectCommand} */ saveCommand?: AnyCommand; } export {};