O'Reilly logo

SproutCore Web Application Development by Tyler Keating

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Rendering custom views

In this section, we will look at the rendering process for SproutCore views. Updating the DOM is one of the slowest points in a web application and so, there are some very important steps that SproutCore uses to avoid touching the DOM unnecessarily. While all of the pre-built SproutCore views are already written to take full advantage of this, when we do custom rendering, it's important that we understand the render cycle in order to keep our views fast. Don't worry; it's not difficult to follow and you will have no problem creating complex views by the time we're done with this chapter.

We've already discussed how to affect the view's top level element by setting layerId, tagName, classNames, and layout but we haven't yet ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required