|
|
@ -1,3 +1,30 @@
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
|
|
|
|
* data-doctx,name 어트리뷰트로 찾기
|
|
|
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
function newDoctxFinder(doctx){
|
|
|
|
|
|
|
|
let finder = new DoctxFinder(doctx);
|
|
|
|
|
|
|
|
return finder;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class DoctxFinder extends EventTarget {
|
|
|
|
|
|
|
|
constructor(doctx) {
|
|
|
|
|
|
|
|
super();
|
|
|
|
|
|
|
|
this.doctx = doctx;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
selector(name){
|
|
|
|
|
|
|
|
return "[data-doctx='"+this.doctx+"'] [name='"+name+"']";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$find(name){
|
|
|
|
|
|
|
|
return $(document.querySelector("[data-doctx='"+this.doctx+"']")).find("[name='"+name+"']");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
find(name){
|
|
|
|
|
|
|
|
return document.querySelector("[data-doctx='"+this.doctx+"']").querySelector("[name='"+name+"']");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
findAll(name){
|
|
|
|
|
|
|
|
return document.querySelector("[data-doctx='"+this.doctx+"']").querySelectorAll("[name='"+name+"']");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 그리드 row 선택
|
|
|
|
* 그리드 row 선택
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|