leaguevine / leaguevine-ultistats

MIT License
18 stars 4 forks source link

Tabbed content in detail view #2

Closed cboulay closed 12 years ago

cboulay commented 12 years ago

Viewing a team shows team details in the top portion of the team then below that is a list of players on that team. The list below should have a tab header that allows swapping between a player-list view and a game-list view.

A tournament detail view has tournament info in the top portion and below it should have games. The leaguevine API divides games up by pool and bracket. I need a clever way to display this organizational logic in a confined space. I am thinking about having swappable views (as above) for each pool + bracket... but this might lead to many tabs. Suggestions are welcome.

cboulay commented 12 years ago

I will add buttons to the list view in the nav-detail-list layout. I will also add the player-list and game-list as subviews of the parent list view. Then the buttons will be bound to actions that show/hide the views as appropriate. I need to be careful here because showing or hiding views can have wacky effects on the bound methods.

cboulay commented 12 years ago

Buttons have been added and place holders for their actions are in place. So far the buttons do nothing. I haven't quite decided exactly how I want the buttons to work. One option is to always have all the data but for the buttons to simply hide/show some. Another option is for the buttons to actually re-request data and ask for specific renders.

cboulay commented 12 years ago

I decided to have all the data present but to use jquery to hide/show the views. This is simpler than dealing with rendering views. Currently this method will re-show the default list whenever the data are reset. This might not be such a problem. If that turns out to be a problem, I will fix it later. For now this issue is closed.