@@ -39,6 +39,7 @@ define([
3939
4040this . fileExtensions = {
4141'csv' :'csv' ,
42+ 'tsv' :'tsv' ,
4243'excel' :'xlsx' ,
4344'json' :'json' ,
4445'pickle' :''
@@ -72,6 +73,7 @@ define([
7273'Read' :{
7374fileTypeId :{
7475'csv' :'pd004' ,
76+ 'tsv' :'pd004' ,
7577'excel' :'pd123' ,
7678'json' :'pd076' ,
7779'pickle' :'pd079'
@@ -86,6 +88,7 @@ define([
8688'Write' :{
8789fileTypeId :{
8890'csv' :'pd005' ,
91+ 'tsv' :'pd005' ,
8992'excel' :'pd124' ,
9093'json' :'pd077' ,
9194'pickle' :'pd078'
@@ -147,7 +150,7 @@ define([
147150_bindEventByType ( pageType ) {
148151var that = this ;
149152var prefix = '#vp_file' + pageType + ' ' ;
150-
153+
151154// select file type
152155$ ( this . wrapSelector ( prefix + '#fileType' ) ) . change ( function ( ) {
153156var value = $ ( this ) . val ( ) ;
@@ -244,7 +247,7 @@ define([
244247renderPage ( pageType ) {
245248var that = this ;
246249var prefix = '#vp_file' + pageType + ' ' ;
247-
250+
248251// clear
249252$ ( this . wrapSelector ( prefix + '#vp_inputOutputBox table tbody' ) ) . html ( '' ) ;
250253$ ( this . wrapSelector ( prefix + '#vp_optionBox table tbody' ) ) . html ( '' ) ;
@@ -386,6 +389,13 @@ define([
386389name :'fileType' ,
387390type :'var'
388391} ) ;
392+ // if file type is tsv
393+ var fileSelected = $ ( "#fileType" ) . val ( ) ;
394+ // $ delimeter = '\t'
395+ if ( $ ( "#fileType" ) . val ( ) === "tsv" ) {
396+ $ ( "#delimiter" ) . val ( `\n` ) ;
397+ }
398+
389399var result = pdGen . vp_codeGenerator ( this . uuid + ' #vp_fileRead' , thisPkg , userOption . toString ( ) ) ;
390400sbCode . append ( result ) ;
391401} else if ( pageType == 'Write' ) {