Created
August 11, 2011 17:24
-
-
Save davidnorth/1140234 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// subclass ContainerView which has an array observer on childViews | |
MyApp.MyContainerView = SC.ContainerView.extend({ | |
}) | |
// Then in controller, or state chart maybe: | |
var newView = SC.TextField.create() | |
containerViewInstance.get('childViews').pushObject(newView); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also
('childViews').firstObject().destroy() or remove() to clear a view