Constructor
new MoveSectionDialog(section)
- Source:
Create a move section dialog.
Parameters:
Name | Type | Description |
---|---|---|
section |
Section |
Extends
Methods
(protected) abort(html, recoverable, closeDialogopt)
- Source:
Abort an operation and show an error.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
html |
string | Error HTML code. |
||
recoverable |
boolean | Is the error recoverable. |
||
closeDialog |
boolean |
<optional> |
false
|
Close the dialog after pressing "Close" under the error message. |
confirmClose()
- Source:
- Overrides:
Confirm closing the dialog.
(async) editSourcePage(source, target) → {object}
- Source:
Edit the source page.
Parameters:
Name | Type | Description |
---|---|---|
source |
object | |
target |
object |
Throws:
Array.<(string|boolean)>
Returns:
- Type
- object
(async, protected) editTargetPage(source, target) → {object}
- Source:
Edit the target page.
Parameters:
Name | Type | Description |
---|---|---|
source |
object | |
target |
object |
Throws:
Array.<(string|boolean)>
Returns:
- Type
- object
(protected) handleError(e, messageName, recoverable)
- Source:
- Overrides:
Handle a error, displaying a message with the provided name and popping the pending state. If the error is not recoverable, the dialog is closed on "Dismiss".
Parameters:
Name | Type | Description |
---|---|---|
e |
CdError | Error | |
messageName |
string | |
recoverable |
boolean |
isUnsaved() → {boolean}
- Source:
- Overrides:
Check if there are unsaved changes.
Returns:
- Type
- boolean
(async, protected) loadSourcePage() → {object}
- Source:
Load the source page code.
Throws:
Array.<(string|boolean)>
Returns:
- Type
- object
(async, protected) loadTargetPage(targetPage) → {object}
- Source:
Load the target page code.
Parameters:
Name | Type | Description |
---|---|---|
targetPage |
module:pageRegistry.Page |
Throws:
Array.<(string|boolean)>
Returns:
- Type
- object
(async, protected) onTitleInputChange()
- Source:
Handler of the event of change of the title input.