initialized : function(event)
{
var me = this;
me.listen(me.$.gridPanel, "mousedown", function(event)
{
//me.unlisten(me.$.gridPanel, event.type, arguments.callee);
// Ctrl + Click 연속호출시 setTimeout호출 방지하고, me._ctrlKey true유지 되도록.
clearTimeout(me._clickTimeout);
me._ctrlKey = event.ctrlKey;
var me._clickTimeout = setTimeout(function()
{
me._ctrlKey = false;
}, 500);
});
/*
me.listen(me.$.gridPanel, "mouseup", function(event)
{
//me.unlisten(me.$.gridPanel, event.type, arguments.callee);
me._ctrlKey = false;
});
*/
},
onItemClick : function(event)
{
var me = this;
var data = event.detail.data;
var item = event.detail.item;
var provider = event.detail.provider;
switch (item.dataField)
{
case "img_sg" :
if (me.onImageChange(data, item) != null)
{
if (me._ctrlKey && UT.isNotEmpty(data.sg_cd))
{
// SG 삭제
// 삭제 하시겠습니까?
UT.confirm("STD.N1300", function()
{
});
}
else
{
// SG 저장
}
}
break;
}
},
Grid에 ctrl 키 사용하기
|
2022.03.16 19:33:19
|
2024.07.19 09:59:25
|
415
|
Aiden
Total of Attached file
0.00 Bytes of 0 files
2022.07.28
2022.07.21
2022.07.15
2022.03.16
2022.03.16
2022.01.31
2022.01.31
2021.10.15