weppos / tabs_on_rails

Tabs on Rails is a simple Rails plugin for creating and managing tabs and navigation menus.
https://simonecarletti.com/code/tabs-on-rails
MIT License
294 stars 52 forks source link

passing options to tabs #1

Closed aaronchi closed 15 years ago

aaronchi commented 15 years ago

It would be nice to be able to pass in id/class and other options to the main tabs call to render in the ul tag

weppos commented 15 years ago

You can already do this by creating a custom builder and overwriting the open_tabs method.

However, I agree I could go further and allow runtime customization passing for example a Hash of options to the open_tabs method. Then you would be able to use the Hash within open_tabs as you want.

Is this what you are asking for?

weppos commented 15 years ago

Just committed: 6d1c197ba8ba87b6f38d7a8deb7f4fe4889cfe66 ;) I'll package a new release ASAP.