Merge pull request #2392 from tugcekucukoglu/dialog

Fixed #2381 - ConfirmDialog: 'position' TypeScript errors
pull/2393/head
Tuğçe Küçükoğlu 2022-04-04 15:31:31 +03:00 committed by GitHub
commit 76133013ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -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.
*/

View File

@ -139,6 +139,12 @@ export default {
<td>null</td>
<td>Header text of the dialog.</td>
</tr>
<tr>
<td>position</td>
<td>string</td>
<td>center</td>
<td>Position of the dialog, options are "center", "top", "bottom", "left", "right", "topleft", "topright", "bottomleft" or "bottomright".</td>
</tr>
<tr>
<td>accept</td>
<td>Function</td>