Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hideMissingTitles not hiding nested sections #14

Closed
chweeks opened this issue Mar 1, 2016 · 2 comments
Closed

hideMissingTitles not hiding nested sections #14

chweeks opened this issue Mar 1, 2016 · 2 comments

Comments

@chweeks
Copy link

chweeks commented Mar 1, 2016

I'm looking to give sections their title with data-menu-title="" in order to display them in the menu. This works fine but even though I've set hideMissingTitles to true the nested sections still grab the first header within the subsection and display it. Is their anyway I can hide these subsections from the menu.

@denehyg
Copy link
Owner

denehyg commented Mar 1, 2016

Currently no. The hideMissingTitles option was intended to handle slides that have no title at all, so if you have header elements in your slides they will be used. I'll need to give it some thought, along with #13, as to how I should restructure the heading criteria to account for this use case.

@denehyg
Copy link
Owner

denehyg commented Mar 24, 2016

I've added a titleSelector option to the plugin. This provides the ability to specify which elements you want to be used for the titles. For this use case you can now use titleSelector: '', in conjunction with hideMissingTitles to remove slides from the menu that do not have data-menu-title attributes.

@denehyg denehyg closed this as completed Mar 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants