diff --git a/src/container/vpContainer.js b/src/container/vpContainer.js
index 4e036b50..2f750233 100644
--- a/src/container/vpContainer.js
+++ b/src/container/vpContainer.js
@@ -619,6 +619,14 @@ define([
} else {
$(vpCommon.wrapSelector(vpCommon.formatString("#{0}", vpConst.API_MODE_CONTAINER))).width($(vpCommon.wrapSelector(".vp-main-container")).width());
}
+
+ // resize
+ if (apiBlockJS) {
+ var blockContainer = apiBlockJS.getBlockContainer();
+ if (blockContainer && blockContainer.getIsOptionPageResize() == false) {
+ blockContainer.resizeAPIblock();
+ }
+ }
}
/**
diff --git a/src/file_io/fileio.js b/src/file_io/fileio.js
index 4ca46df1..1af484d3 100644
--- a/src/file_io/fileio.js
+++ b/src/file_io/fileio.js
@@ -7,8 +7,9 @@ define([
, 'nbextensions/visualpython/src/common/vpFuncJS'
, 'nbextensions/visualpython/src/pandas/common/commonPandas'
, 'nbextensions/visualpython/src/pandas/common/pandasGenerator'
+ , 'nbextensions/visualpython/src/common/component/vpSuggestInputText'
, 'nbextensions/visualpython/src/pandas/fileNavigation/index'
-], function (requirejs, $, vpCommon, vpConst, sb, vpFuncJS, libPandas, pdGen, fileNavigation) {
+], function (requirejs, $, vpCommon, vpConst, sb, vpFuncJS, libPandas, pdGen, vpSuggestInputText, fileNavigation) {
// 옵션 속성
const funcOptProp = {
stepCount : 1
@@ -350,6 +351,18 @@ define([
);
}
+ // encoding suggest input
+ $(this.wrapSelector('#encoding')).replaceWith(function() {
+ // encoding list : utf8 cp949 ascii
+ var encodingList = ['utf8', 'cp949', 'ascii'];
+ var suggestInput = new vpSuggestInputText.vpSuggestInputText();
+ suggestInput.setComponentID('encoding');
+ suggestInput.addClass('vp-input');
+ suggestInput.setSuggestList(function() { return encodingList; });
+ suggestInput.setPlaceholder('encoding option');
+ return suggestInput.toTagString();
+ });
+
}
diff --git a/src/file_io/variables.html b/src/file_io/variables.html
index 87c3252f..a6a45dc1 100644
--- a/src/file_io/variables.html
+++ b/src/file_io/variables.html
@@ -1,11 +1,21 @@
-
+
diff --git a/src/file_io/variables.js b/src/file_io/variables.js
index bc71d8f8..d74a9455 100644
--- a/src/file_io/variables.js
+++ b/src/file_io/variables.js
@@ -63,8 +63,6 @@ define([
this.package = libPandas._PANDAS_FUNCTION[funcOptProp.libID];
}
-
-
/**
* Extend vpFuncJS
*/
@@ -135,13 +133,13 @@ define([
, 'str', 'int', 'float', 'bool', 'dict', 'list', 'tuple'
];
- var tagTable = this.wrapSelector('#vp_var_variableBox table');
+ var tagTable = this.wrapSelector('#vp_var_variableBox table tbody');
// variable list table
var tagDetailTable = this.wrapSelector("#vp_varDetailTable");
// initialize tags
- $(tagTable).find('tr:not(:first)').remove();
+ $(tagTable).find('tr').remove();
$(tagDetailTable).html('');
// HTML rendering
diff --git a/src/pandas/common/commonPandas.js b/src/pandas/common/commonPandas.js
index 760473dd..ba3391fc 100644
--- a/src/pandas/common/commonPandas.js
+++ b/src/pandas/common/commonPandas.js
@@ -151,6 +151,11 @@ define([
}
],
variable: [
+ {
+ name: 'encoding',
+ type: 'text',
+ label: 'Encoding'
+ },
{
name:'names',
type:'list',
diff --git a/src/pandas/common/pandasGenerator.js b/src/pandas/common/pandasGenerator.js
index 32a447cd..5aad281c 100644
--- a/src/pandas/common/pandasGenerator.js
+++ b/src/pandas/common/pandasGenerator.js
@@ -108,10 +108,10 @@ define([
var requiredFontStyle = required? vpConst.COLOR_FONT_ORANGE : '';
$(lbl).attr({
'for': obj.name,
- 'class': requiredFontStyle
+ 'class': requiredFontStyle,
+ 'title': '(' + obj.name + ')'
});
- // lbl.innerText = (required? '* ':'') + obj.label + (showKey?' ('+obj.name+')':'');
- lbl.innerText = obj.label + (showKey?' ('+obj.name+')':'');
+ lbl.innerText = obj.label;
tblLabel.appendChild(lbl);
// 명시된 component에 맞는 태그 구성해서 붙여주기
diff --git a/src/pandas/fileNavigation/index.html b/src/pandas/fileNavigation/index.html
index d3ecef42..7da1df5e 100644
--- a/src/pandas/fileNavigation/index.html
+++ b/src/pandas/fileNavigation/index.html
@@ -13,7 +13,7 @@