Merge pull request #2392 from tugcekucukoglu/dialog
Fixed #2381 - ConfirmDialog: 'position' TypeScript errorspull/2393/head
commit
76133013ed
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue