gvas / knockout-jqueryui

Knockout bindings for the jQuery UI widgets.
http://gvas.github.com/knockout-jqueryui/
MIT License
103 stars 38 forks source link

Template example for Tabs #20

Closed sdemooy closed 10 years ago

sdemooy commented 10 years ago

Can you please provide a sample on how to implement two different tabs each with their own template?

gvas commented 10 years ago

@sdemooy: I'm not sure I understand your request. Below is a fiddle with 2 tabs widget. Is this what you are after?

http://jsfiddle.net/gvas/eHZJV/1/

sdemooy commented 10 years ago

The example you show allows me to configure two tabs, but they both need to show just text (although it can be different text). I'd like to have different html tags with different data/information on each tab; just like the accordion example. So for example one tab has a list while the other has form for data entry with buttons.

gvas commented 10 years ago

A single tabs widget with 2 (fixed) tab pages, with different contents for each tab pages: http://jsfiddle.net/gvas/eHZJV/2/