Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit450d305

Browse files
author
minjk-bl
committed
Frame > add column > apply - removed lambda x code
1 parentc05176e commit450d305

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

‎src/common/vpFrameEditor.js‎

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -559,14 +559,9 @@ define([
559559
content.appendLine('<table><colgroup><col width="80px"><col width="*"></colgroup>');
560560
content.appendLine('<tr><th><label>column</label></th>');
561561
content.appendFormatLine('<td>{0}</td></tr>',this.renderColumnList(this.state.columnList));
562-
content.appendLine('<tr><th><label>lambda x:</label></th>');
563-
varsuggestInput=newvpSuggestInputText.vpSuggestInputText();
564-
suggestInput.setComponentID('vp_popupAddApply');
565-
suggestInput.addClass('vp-input vp-popup-apply-lambda');
566-
suggestInput.setSuggestList(function(){return['x'];});
567-
suggestInput.setValue('x');
568-
suggestInput.setNormalFilter(false);
569-
content.appendFormatLine('<td>{0}</td>',suggestInput.toTagString());
562+
content.appendLine('<tr><th><label>function</label></th>');
563+
content.appendFormatLine('<td><input type="text" id="{0}" class="{1}" placeholder="{2}"/></td>'
564+
,'vp_popupAddApply','vp-input vp-popup-apply-lambda','Type code manually');
570565
content.appendLine('</tr></table>');
571566
content.appendLine('</div>');// end of vp-popup-tab apply
572567
content.appendLine('</div>');// end of vp-popup-addpage
@@ -1084,7 +1079,7 @@ define([
10841079
}
10851080
code.append(')');
10861081
}elseif(tab=='apply'){
1087-
code.appendFormat("{0}[{1}] = {2}[{3}].apply(lambda x:{4})",tempObj,name,tempObj,content.column,content.apply);
1082+
code.appendFormat("{0}[{1}] = {2}[{3}].apply({4})",tempObj,name,tempObj,content.column,content.apply);
10881083
}
10891084
break;
10901085
caseFRAME_EDIT_TYPE.ADD_ROW:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp