Add support for custom text type generation (#1683)
This commit is contained in:
parent
66d048832f
commit
39cabc4db6
@ -293,6 +293,8 @@ class DisplayGenerator {
|
|||||||
return this._createTermDefinitionEntryText(entry);
|
return this._createTermDefinitionEntryText(entry);
|
||||||
} else if (typeof entry === 'object' && entry !== null) {
|
} else if (typeof entry === 'object' && entry !== null) {
|
||||||
switch (entry.type) {
|
switch (entry.type) {
|
||||||
|
case 'text':
|
||||||
|
return this._createTermDefinitionEntryText(entry.text);
|
||||||
case 'image':
|
case 'image':
|
||||||
return this._createTermDefinitionEntryImage(entry, dictionary);
|
return this._createTermDefinitionEntryImage(entry, dictionary);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user