-
-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy pathvpComComponent.js
More file actions
43 lines (37 loc) · 1.04 KB
/
vpComComponent.js
File metadata and controls
43 lines (37 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
define([
'require'
, 'jquery'
, 'nbextensions/visualpython/src/common/vpCommon'
, 'nbextensions/visualpython/src/common/constant'
, 'nbextensions/visualpython/src/common/StringBuilder'
], function (requirejs, $, vpCommon, vpConst, sb) {
let _UUID;
/**
* @interface vpComComponent 컴퍼넌트 인터페이스
* @constructor
*/
var vpComComponent = function() {
}
/**
* 컨트롤 uuid 생성
*/
vpComComponent.prototype.setUUID = function() {
this._UUID = vpCommon.getUUID();
}
/**
* tag 생성 메서드. 오버라이트 필요.
*/
vpComComponent.prototype.toTagString = function() {
console.log("return component tag string");
}
/**
* vp wrap selector string
* @param {String} id 최종 tag id
*/
vpComComponent.prototype.wrapSelector = function(selector = "") {
return vpCommon.wrapSelector(vpCommon.formatString(".{0} {1}", this._UUID, selector));
}
return {
vpComComponent: vpComComponent
}
});