| Page 1 of 1 | [ 2 posts ] |
|
Hi,
This is my first post on the YUI forums. I trying to learn YUI 3; specifically the App framework. I written a small app (completely useless) that switches views. It doesn't use Model. I was wondering if someone would take a look at it and give some comments if I'm doing it the right/wrong way. http://www.mediafire.com/?kjzn6rmqlh4zz2b Thanks, Matt |
|
I think you have the right idea for how to start with the App Framework. There are a couple of things I noticed:
Your views have templates which are missing closing tags, you probably want to add these so the HTML is correct. Also in the render methods, you generally shouldn't have to worry about view appending itself to the body; the thing constructing the view (e.g. the app) should worry about appending the view's `container` node somewhere in the visible DOM. The user guide for the App component has been updated with some best practices that you'll find useful: http://yuilibrary.com/yui/docs/app/#best-practices |
| Page 1 of 1 | [ 2 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group