Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit c285d90

Browse files
feat: slide navigation title
1 parent c2d95a2 commit c285d90

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

studio/src/app/pages/editor/app-editor/app-editor.tsx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,24 @@ export class AppEditor {
211211
if (slides) {
212212
for (const slide of Array.from(slides)) {
213213
if (slide.tagName && slide.tagName.toLowerCase().indexOf('deckgo-slide') > -1) {
214-
const title = slide.querySelector('[slot="title"]');
214+
const title: HTMLElement = slide.querySelector('[slot="title"]');
215215

216216
if (title) {
217217
results.push(title.innerHTML);
218+
} else {
219+
const start: HTMLElement = slide.querySelector('[slot="start"]');
220+
221+
if (start) {
222+
results.push(start.textContent);
223+
} else {
224+
const end: HTMLElement = slide.querySelector('[slot="end"]');
225+
226+
if (end) {
227+
results.push(end.textContent);
228+
} else {
229+
results.push('');
230+
}
231+
}
218232
}
219233
}
220234
}

0 commit comments

Comments
 (0)