Skip to content

Commit a4cff9b

Browse files
committed
Added function on slide-viewer/Slide to look up custom defined types
1 parent cc2bff7 commit a4cff9b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

slide-viewer-static/js/models/Slide.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ export class Slide extends EventEmitter {
1717
return this.data.type;
1818
}
1919

20+
getCustomType(typeName, typeId) {
21+
return this.data?.custom?.[typeName]?.[typeId];
22+
}
23+
2024
load(path, opts = {}) {
2125
this.path = path;
2226
this.staticPath = '/presentations/' + path;

0 commit comments

Comments
 (0)