The basic Tendina use case setup consists in 3 simple steps:
<!-- Shake your </body> -->
<script src="path/to/jquery-1.11.1.min.js"></script>
<script src="path/to/tendina.min.js"></script>
The markup must be formatted as an unordered list with links, like this:
<ul id="my-menu">
<li><a href="#">Rock</a>
<ul>
<li><a href="#">Garage Rock</a>
<ul>
<li><a href="#">The Hives</a></li>
</ul>
</li>
<li><a href="#">Progressive Rock</a>
<ul>
<li><a href="#">King Crimson</a></li>
</ul>
</li>
</ul>
</li>
</ul>
Don't forget anchor tags!
Tendina uses them for DOM traversing, so don't forget to add them (even if they don't have any href).
// Wuzzah!
$('#my-menu').tendina()
We're done! Let's chill out for a sec now, it's been hard.
Tendina should work with most browsers, including IE7+ (it also depends from which jQuery you're using).
Tendina's purpose is to handle menu interactions in a simple, flexible way. As a result, Tendina comes with no styles at all – this means you don't need to override useless CSS classes, and you have total control on the styling of your menu.
Tendina comes with some options and methods that should make your life easier – here are some examples you could find interesting.
To see the full option and method list, head over to GitHub.
If you use Bower, you can install it from the command line:
$ bower install tendina
You can download Tendina packed as a .zip archive from here, or you can visit the GitHub project page and fork it.
Hit me up on Twitter or open an issue on GitHub.
Think something might be better than it is now, you feel something is missing or you just want to hack with some CoffeeScript?
You're welcome! fork Tendina on Github!