Class: SC.WebView


Extends SC.Control, SC.View.

Used to display an iframe. The source, (specified by the value property) of the iFrame should be from the same domain. (i.e. the src / value should be from the same domain) if you want to access the contents of the iframe.

Defined in: web.js

Since:
SproutCore 1.0

Field Summary

Instance Methods

Field Detail

displayProperties Array
Default value:
['value', 'shouldAutoResize']
See:
SC.View#displayProperties
shouldAutoResize Boolean

The content of the iframe can be bigger than the size specified when creating the view. If you want the view to be auto-resized to the dimensions of the iframe, then set the value of this property to YES. The web view can be auto resized only if the contents are from the same domain as the parent domain.

Default value:
NO

Instance Method Detail

didCreateLayer()
Called when the layer gets created.
render(context, firstTime)
Parameters:
context SC.RenderContext
firstTime Boolean
row(optionalClass, properties, rowExt)

Creates a form row.

Can be called in two ways: row(optionalClass, properties), which creates a field with the properties, and puts it in a new row; and row(properties), which creates a new row—and it is up to you to add any fields you want in the row.

You can also supply some properties to extend the row itself with.


Defined in: form.js.
Parameters:
optionalClass
properties
rowExt
setup()

Defined in: ui.js.
teardown()

Defined in: ui.js.
update()

Defined in: form.js.
willDestroyLayer()
Called before the layer gets destroyed.
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 08 2015 10:02:21 GMT-0600 (CST)