forked from visualpython/visualpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnpImportRender.js
More file actions
51 lines (42 loc) · 1.61 KB
/
Copy pathnpImportRender.js
File metadata and controls
51 lines (42 loc) · 1.61 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
44
45
46
47
48
49
50
51
define ([
'nbextensions/visualpython/src/numpy/common/NumpyPageRender/parent/NumpyPageRender'
], function( NumpyPageRender ) {
'use strict';
/**
* @class NpImportRender
* @constructor
*/
var NpImportRender = function(numpyOptionObj) {
const { numpyDtypeArray, numpyIndexValueArray, numpyEnumRenderEditorFuncType } = numpyOptionObj;
this.numpyDtypeArray = numpyDtypeArray;
this.numpyIndexValueArray = numpyIndexValueArray;
this.numpyEnumRenderEditorFuncType = numpyEnumRenderEditorFuncType;
NumpyPageRender.call(this);
};
/**
* NumpyPageRender 에서 상속
*/
NpImportRender.prototype = Object.create(NumpyPageRender.prototype);
/**
* NumpyPageRender 클래스의 pageRender 메소드 오버라이드
*/
NpImportRender.prototype.pageRender = function(tagSelector) {
this.rootTagSelector = tagSelector || this.getMainPageSelector();
var numpyPageRenderThis = this;
const { PARAM_INPUT_EDITOR_TYPE } = this.numpyEnumRenderEditorFuncType;
var bindFuncData = {
numpyPageRenderThis: numpyPageRenderThis
, numpyPageRenderFuncType: PARAM_INPUT_EDITOR_TYPE
, stateParamNameStrOrStrArray: ['acronyms']
, paramNameStrArray: ['']
, placeHolderArray: ['Input']
}
this.renderPrefixCode();
this.renderRequiredInputOutputContainer();
this.renderInputIndexValueBlock('Numpy As', bindFuncData);
/** 옵션 창 */
/** userOption 창 */
this.renderPostfixCode();
}
return NpImportRender;
});