Class: SC.Page
Extends
SC.Object.
SC.Page
A Page object is used to store a set of views that can be lazily configured as needed. The page object works by overloading the get() method. The first time you try to get the page
Defined in: page.js
Field Summary
- Fields borrowed from SC.Object:
- concatenatedProperties, isDestroyed, isObject, nextProperty, object, property, target, toInvalidate
- Fields borrowed from SC.Observable:
- isObservable
Class Methods
Instance Methods
Field Detail
SC.Page.designWhen you create a page, you can set it's "owner" property to an
object outside the page definition. This allows views in the page
to use the owner object as a target, (as well as other objects
accessible through the owner object). E.g.
myButton: SC.ButtonView.design({
title: 'Click me',
target: SC.outlet('page.owner'),
action: 'buttonClicked'
})
Usually, you'll set 'owner' to the object defined in core.js.
Class Method Detail
- Parameters:
- attrs
Instance Method Detail
Defined in: page.js.
Defined in: page.js.
- Parameters:
- key
Returns the named property unless the property is a view that has not yet been configured. In that case it will return undefined. You can use this method to safely get a view without waking it up.
- Parameters:
- key
- Parameters:
- locs