isFixed implemented
parent
3ab0712d23
commit
7fc16dc967
|
|
@ -770,9 +770,9 @@ export class NttGanttComponent implements OnInit {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public queryTaskbarInfo(args: any) {
|
public queryTaskbarInfo(args: any) {
|
||||||
if (args.taskbarType == 'Milestone' && args.data.taskData.TaskID.includes("D2"))
|
if (args.taskbarType == 'Milestone' && args.data.taskData.TaskID.includes("D2") && args.data.taskData.isFixed == false)
|
||||||
{
|
{
|
||||||
// console.log(args.taskbarElement.children[1].style.add);
|
// console.log(args.taskbarElement.children[1].style.add);
|
||||||
args.taskbarElement.children[1].classList.add('e-gantt-milestone-border1');
|
args.taskbarElement.children[1].classList.add('e-gantt-milestone-border1');
|
||||||
// console.log(args.taskbarElement.children[1]);
|
// console.log(args.taskbarElement.children[1]);
|
||||||
// args.taskbarElement.children[1].children[0].classList.add('e-gantt-milestone-border');
|
// args.taskbarElement.children[1].children[0].classList.add('e-gantt-milestone-border');
|
||||||
|
|
@ -1002,7 +1002,11 @@ export class NttGanttComponent implements OnInit {
|
||||||
public actionBegin(args: any) {
|
public actionBegin(args: any) {
|
||||||
if(args.requestType == 'taskbarediting'){
|
if(args.requestType == 'taskbarediting'){
|
||||||
if(args.taskBarEditAction == 'MilestoneDrag'){
|
if(args.taskBarEditAction == 'MilestoneDrag'){
|
||||||
if(!args.data.TaskID.includes("D2")){
|
if(args.data.TaskID.includes("D2")){
|
||||||
|
if(args.data.taskData.isFixed == true ) {
|
||||||
|
args.cancel = true;
|
||||||
|
}
|
||||||
|
}else{
|
||||||
args.cancel = true;
|
args.cancel = true;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@
|
||||||
/* border-top-width: 1px; */
|
/* border-top-width: 1px; */
|
||||||
color: red;
|
color: red;
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
|
cursor: not-allowed;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -41,6 +42,7 @@
|
||||||
border-radius: 30%;
|
border-radius: 30%;
|
||||||
color: red;
|
color: red;
|
||||||
background-color: #9e9e9b !important;
|
background-color: #9e9e9b !important;
|
||||||
|
cursor: grab;
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue