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

Commit

Permalink
feat: on slide load, emit slides' titles
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Feb 26, 2019
1 parent 88efd15 commit 8cc779e
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 15 deletions.
47 changes: 33 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@stencil/sass": "^0.1.1",
"@stencil/utils": "0.0.5",
"autoprefixer": "^9.4.7",
"deckdeckgo-types": "^1.0.0-alpha.7"
"deckdeckgo-types": "^1.0.0-alpha.8"
},
"repository": {
"type": "git",
Expand Down
2 changes: 2 additions & 0 deletions src/components/deck/deckdeckgo-deck/deckdeckgo-deck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,11 @@ export class DeckdeckgoDeck {

Array.from(loadedSlides).forEach((slide: HTMLElement) => {
const notes: HTMLElement = slide.querySelector('[slot=\'notes\']');
const title: HTMLElement = slide.querySelector('[slot=\'title\']');

orderedSlidesTagNames.push({
name: slide.tagName,
title: title ? title.innerHTML : null,
notes: notes ? notes.innerHTML : null
});
});
Expand Down

0 comments on commit 8cc779e

Please sign in to comment.