| Name | Return Type | Description |
|---|---|---|
| activateDialogByName | Activate with the name of the dialog. | |
| closeAll | Close all dialogs. | |
| getActiveDialogName | String | Returns the name of the active dialog. |
| getConstraintByName | {[key:string]: Number} | Returns the dialog's Constraint. |
| getDialogByName | Dialog | Returns the name of the dialog as a dialog. |
| getDialogName | String | Returns the name through the dialog. |
| getDialogNames | String[] | Returns the dialog names. |
| minimizeAll | Collapses all dialogs. | |
| openDialog | Promise<Object> | Open a dialog in the app. |
| replaceConstraintByName | Boolean | Replace the dialog's Constraint. |
| restoreAll | Restore all dialogs. | |
| sort | Sort the dialog. | |
| sortInCascade | Arrange the dialogs in a cascade pattern. | |
| sortInTile | Arrange the dialog in tile form. | |
| updateConstraintByName | Boolean | Change the dialog's Constraint. |
| name | type | description | |
|---|---|---|---|
| appInstance | AppInstance | ||
| name | type | description | |
|---|---|---|---|
| dialogName | String | Dialog name | |
| return | String |
|---|
| name | type | description | |
|---|---|---|---|
| dialogName | String | ||
| return | {[key:string]: Number} |
|---|
| name | type | description | |
|---|---|---|---|
| name | String | ||
| return | Dialog |
|---|
| name | type | description | |
|---|---|---|---|
| dialog | Dialog | Dialog object | |
| return | String |
|---|
| return | String[] |
|---|
dialogManager.openDialog("dlgs/people","dialogName1");
dialogManager.openDialog("dlgs/people","dialogName2",{width:400,height:300});
dialogManager.openDialog("dlgs/people","dialogName3",{top:30,right:20,width:400,height:600});
dialogManager.openDialog("dlgs/people","dialogName4",{width:400, height:300},function(dialog){
// Process when the dialog is loaded
dialog.modal = false;
dialog.headerMin = true;
}).then(function(returnValue){
//Processing the value returned when closing
});| name | type | description | |
|---|---|---|---|
| appId | #app | cpr.core.App | The ID of the app to open | |
| dialogName | String | The name of the dialog. If the value is null, a value is automatically generated. | |
| dialogPropertiesoptional | DialogProperties | Dialog position and size. | |
| handleroptional | (dlg: cpr.controls.Dialog)=>Void | If you need to handle the Dialog object more specifically, you can add handlers to handle the Dialog (you can add event handlers, change styles, etc.) | |
| return | Promise<Object> |
|---|
| name | type | description | |
|---|---|---|---|
| dialogName | String | Dialog name | |
| newConstraint | DialogConstraint | Replaceable constraint | |
| return | Boolean |
|---|
dialogManager.sort (cpr.core.DialogSortType.cascade);
dialogManager.sort ("tile", {horizontalMargin: 10, verticalMargin: 10, horizontalSpacing: 10, verticalSpacing: 10});
code> pre>| name | type | description | |
|---|---|---|---|
| type | DialogSortType | Sort type of dialog. | |
| propoptional | DialogSortProperty | Sorting properties. | |
dialogManager.sortInCascade();
dialogManager.sortInCascade({horizontalMargin:10,verticalMargin:0,horizontalSpacing:30,verticalSpacing:30});| name | type | description | |
|---|---|---|---|
| optionsoptional | DialogCascadeSortOptions | Sorting options. | |
dialogManager.sortInTile();
dialogManager.sortInTile({horizontalMargin:10,verticalMargin:10,horizontalSpacing:10,verticalSpacing:10});| name | type | description | |
|---|---|---|---|
| optionsoptional | DialogTileSortOptions | Sorting options. | |
| name | type | description | |
|---|---|---|---|
| dialogName | String | ||
| overridingConstraint | DialogConstraint | ||
| return | Boolean |
|---|