Bootstrap Navbar items after X amount place in dropdown

bootstrap

#1

This is a question regarding how to approach something I have built. I have an admin where you can create lots of links that are then placed in the bootstrap nav but is there a way to put the items in a dropdown automatically after 6 items? Akmost paginate it?

Example:

Link | Link | Link | Link | Link | Link | Dropdown
                                          Link
                                          Link

Thanks in advance

Note: Might be in the wrong section