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

Class Methods

Instance Methods

Field Detail

SC.Page.design
Calling design() on a page is the same as calling create()
owner

When 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

localization(attrs)
Calling localization returns passed attrs.
Parameters:
attrs

Instance Method Detail

designController()
Extend `SC.Page` to create a `PageDesignController` on demand.
Defined in: page.js.
emitDesign()
Extend `SC.Page` to emit a design document for the entire page.
Defined in: page.js.
get(key)
Parameters:
key
getIfConfigured(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
loc(locs)
Applies a localization to every view builder defined on the page. You must call this before you construct a view to apply the localization.
Parameters:
locs
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 08 2015 10:02:21 GMT-0600 (CST)