Skip to content

Commit 055970d

Browse files
committed
textControl to controls
1 parent db5615b commit 055970d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

language/controls.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,16 @@ import VueLoadControl from '~/components/controls/VueLoadControl.vue'
1111
import VueRangeControl from '~/components/controls/VueRangeControl.vue'
1212
import VueCheckBoxControl from '~/components/controls/VueCheckBoxControl.vue'
1313
import VueColorRangeControl from '~/components/controls/VueColorRangeControl.vue'
14+
import VueTextControl from '~/components/controls/VueTextControl.vue'
1415

16+
class TextControl extends Rete.Control {
17+
constructor(emitter, key, placeholder, node){
18+
super(key)
19+
this.render = 'vue';
20+
this.component = VueTextControl;
21+
this.props = { emitter, ikey: key, placeholder, node }
22+
}
23+
}
1524
class FileLoadControl extends Rete.Control {
1625
constructor(emitter, key, name, node){
1726
super(key)
@@ -114,5 +123,5 @@ export {
114123
ClosedColorControl, TwoColorControl,
115124
ColorRangeControl, CheckBoxControl,
116125
RangeControl, TwoRangeControl, NumControl,
117-
LoadControl, SelectControl
126+
LoadControl, SelectControl, TextControl
118127
}

0 commit comments

Comments
 (0)