Fixed #2381 - ConfirmDialog: 'position' TypeScript errors
parent
589354406f
commit
0076f657f2
|
@ -1,3 +1,5 @@
|
||||||
|
type ConfirmationPositionType = 'center' | 'top' | 'bottom' | 'left' | 'right' | 'topleft' | 'topright' | 'bottomleft' | 'bottomright' | undefined;
|
||||||
|
|
||||||
export interface ConfirmationOptions {
|
export interface ConfirmationOptions {
|
||||||
/**
|
/**
|
||||||
* Element to align the overlay.
|
* 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.
|
* Optional key to match the key of the confirmation, useful to target a specific confirm dialog instance.
|
||||||
*/
|
*/
|
||||||
group?: string | undefined;
|
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.
|
* Icon to display next to the message.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -139,6 +139,12 @@ export default {
|
||||||
<td>null</td>
|
<td>null</td>
|
||||||
<td>Header text of the dialog.</td>
|
<td>Header text of the dialog.</td>
|
||||||
</tr>
|
</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>
|
<tr>
|
||||||
<td>accept</td>
|
<td>accept</td>
|
||||||
<td>Function</td>
|
<td>Function</td>
|
||||||
|
|
Loading…
Reference in New Issue