We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b96b333 commit 748e222Copy full SHA for 748e222
js/scripts/prop-types.js
@@ -142,6 +142,12 @@ function ThreeTypeDict(typeName) {
142
}
143
_.extend(ThreeTypeDict.prototype, BaseType.prototype, {
144
getTraitlet: function() {
145
+ if (this.typeName instanceof Array) {
146
+ var instances = this.typeName.map(function(typeName) {
147
+ return ` Instance(${typeName})`;
148
+ });
149
+ return 'Dict(Union([\n' + instances.join(',\n') + '\n ])).tag(sync=True, **widget_serialization)';
150
+ }
151
if (this.typeName === 'this') {
152
return 'Dict(This()).tag(sync=True, **widget_serialization)';
153
0 commit comments