diff --git a/src/components/confirmationoptions/ConfirmationOptions.d.ts b/src/components/confirmationoptions/ConfirmationOptions.d.ts index 307e47c2c..0d5b867f9 100644 --- a/src/components/confirmationoptions/ConfirmationOptions.d.ts +++ b/src/components/confirmationoptions/ConfirmationOptions.d.ts @@ -1,3 +1,5 @@ +type ConfirmationPositionType = 'center' | 'top' | 'bottom' | 'left' | 'right' | 'topleft' | 'topright' | 'bottomleft' | 'bottomright' | undefined; + export interface ConfirmationOptions { /** * Element to align the overlay. @@ -15,6 +17,12 @@ export interface ConfirmationOptions { * Optional key to match the key of the confirmation, useful to target a specific confirm dialog instance. */ group?: string | undefined; + /** + * Position of the dialog, options are 'center', 'top', 'bottom', 'left', 'right', 'topleft', 'topright', 'bottomleft' or 'bottomright'. + * @see ConfirmationPositionType + * Default value is 'center'. + */ + position?: ConfirmationPositionType; /** * Icon to display next to the message. */ diff --git a/src/views/confirmdialog/ConfirmDialogDoc.vue b/src/views/confirmdialog/ConfirmDialogDoc.vue index f8a24f02e..fc981bfa4 100644 --- a/src/views/confirmdialog/ConfirmDialogDoc.vue +++ b/src/views/confirmdialog/ConfirmDialogDoc.vue @@ -139,6 +139,12 @@ export default { null Header text of the dialog. + + position + string + center + Position of the dialog, options are "center", "top", "bottom", "left", "right", "topleft", "topright", "bottomleft" or "bottomright". + accept Function