Skip to content

Commit 0442186

Browse files
author
minjk-bl
committed
Add DataSelector to Instance app
1 parent ff99abe commit 0442186

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

visualpython/js/m_apps/Instance.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ define([
1818
'vp_base/js/com/com_String',
1919
'vp_base/js/com/component/PopupComponent',
2020
'vp_base/js/com/component/InstanceEditor',
21+
'vp_base/js/com/component/DataSelector',
2122
'vp_base/js/m_apps/Subset'
22-
], function(insHtml, insCss, com_String, PopupComponent, InstanceEditor, Subset) {
23+
], function(insHtml, insCss, com_String, PopupComponent, InstanceEditor, DataSelector, Subset) {
2324

2425
const MAX_STACK_SIZE = 20;
2526

@@ -178,6 +179,13 @@ define([
178179
templateForBody() {
179180
let page = $(insHtml);
180181
$(page).find('#vp_instanceVariable').val(this.state.vp_instanceVariable);
182+
183+
let allocateSelector = new DataSelector({
184+
pageThis: this, id: 'vp_instanceAllocate', placeholder: 'Variable name'
185+
});
186+
$(page).find('#vp_instanceAllocate').replaceWith(allocateSelector.toTagString());
187+
188+
181189
return page;
182190
}
183191

0 commit comments

Comments
 (0)