SchedulingIssueResolutionPopup
A Popup informing user of a scheduling issue that needs manual resolution. Examples of such cases could be an infinite cycle, a scheduling conflict or a calendar misconfiguration. The dialog displays the case description and lets the user pick one of the possible resolutions.
//<code-header>
fiddle.title = 'Scheduling issue resolution popup';
//</code-header>
const scheduler = new SchedulerPro({
project : {
events : [
{
id : 1,
name : 'Write docs',
resourceId : 1,
startDate : '2020-03-23',
duration : 2,
durationUnit : 'h'
}
],
resources : [
{ id : 1, name : 'Albert' },
{ id : 2, name : 'Bill' }
]
},
appendTo : targetElement,
startDate : '2020-03-23',
endDate : '2020-03-24',
autoHeight : true,
eventStyle : 'colored',
viewPreset : 'hourAndDay',
columns : [
{
text : 'Resource',
field : 'name'
}
],
tbar : [
{
text : 'Add invalid dependency',
icon : 'fa-bug',
cls : 'b-invalid-dependency-button b-no-monkeys',
onClick() {
// Here we add an invalid dependency linking "Arrive" event to itself
// which naturally building a cycle...
scheduler.dependencyStore.add({ fromEvent : 1, toEvent : 1 });
}
}
]
});Configs
120
Configs
120Common
Content
CSS
DOM
Float & align
Layout
misc
Misc
Other
Scrolling
Properties
98
Properties
98Class hierarchy
CSS
DOM
Layout
Misc
Other
State
Widget hierarchy
Functions
77
Functions
77Other
Returns parameters for the provided resolution that should be
passed to its resolve method.
| Parameter | Type | Description |
|---|---|---|
resolution | Object | Scheduling exception resolution |
The resolution arguments
Resolves a scheduling conflict happened on the project (a scheduling conflict or a calendar misconfiguration).
| Parameter | Type | Description |
|---|---|---|
event | Object | The scheduling exception event data: |
event.source | ProjectModel | The project |
event.schedulingIssue | * | The scheduling exception |
event.continueWithResolutionResult | function | The function to be called once the resolution is chosen and applied (or it was decided to cancel the changes). |
Promise that gets resolved when user picks a resolution and clicks "Apply" (or "Cancel") button.