arielsalminen / TinyNav.js

Responsive navigation plugin that weighs just 443 bytes
http://tinynav.viljamis.com/
635 stars 207 forks source link

Turn non-linked items into optgroups #54

Closed gmclelland closed 10 years ago

gmclelland commented 10 years ago

Can you provide a way to turn non-linked list items into optgroups so they aren't selectable? or maybe provide a class for list items that shouldn't be selectable when converted into a select list.

gmclelland commented 10 years ago

Haven't tried yet, but this might work https://github.com/charlimmelman/TinyNav.js/commit/04cd8e9e33f4ef67c313870e46e95e1f6f7c08ef

Though I think that sets the option to disabled instead of making it an optgroup

gmclelland commented 10 years ago

Just tested the pull request and it works great. So I'm closing this issue in favor of https://github.com/charlimmelman/TinyNav.js/commit/04cd8e9e33f4ef67c313870e46e95e1f6f7c08ef