forked from visualpython/visualpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptionDeleteButton.js
More file actions
22 lines (17 loc) · 807 Bytes
/
Copy pathoptionDeleteButton.js
File metadata and controls
22 lines (17 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
define([
'jquery'
, 'nbextensions/visualpython/src/common/StringBuilder'
, '../../constData.js'
], function ( $, sb, constData ) {
const { VP_CLASS_STYLE_FLEX_COLUMN_CENTER } = constData;
var MakeOptionDeleteButton = function(id) {
var sbOptionDeleteButton = new sb.StringBuilder();
sbOptionDeleteButton.appendFormatLine("<div id='{0}' class='{1}'>", id, VP_CLASS_STYLE_FLEX_COLUMN_CENTER);
sbOptionDeleteButton.appendFormatLine("<div class='{0} {1}'>",'vp-apiblock-icon-btn' ,'vp-apiblock-del-col');
sbOptionDeleteButton.appendLine("</div>");
sbOptionDeleteButton.appendLine("</div>");
sbOptionDeleteButton = sbOptionDeleteButton.toString();
return sbOptionDeleteButton;
}
return MakeOptionDeleteButton;
});